mirror of
https://github.com/atom/atom.git
synced 2026-01-24 06:18:03 -05:00
Fix bug that happened to pass specs.
This commit is contained in:
@@ -81,7 +81,7 @@ class LineWrapper
|
||||
lineLength = lineText.length
|
||||
return lineLength unless lineLength > @maxLength
|
||||
|
||||
if /\s/.test(tokensText[@maxLength])
|
||||
if /\s/.test(lineText[@maxLength])
|
||||
# search forward for the start of a word past the boundary
|
||||
for column in [@maxLength..lineLength]
|
||||
return column if /\S/.test(lineText[column])
|
||||
|
||||
Reference in New Issue
Block a user