mirror of
https://github.com/atom/atom.git
synced 2026-02-09 14:15:24 -05:00
Next word on at end of file moves cursor to end of file.
Not sure how this was working before? Maybe a quirk of ace?
This commit is contained in:
@@ -48,8 +48,10 @@ class MoveToNextWord extends Motion
|
||||
|
||||
if match
|
||||
column += match.index
|
||||
else if row + 1 == @editor.buffer.numLines()
|
||||
column = @editor.buffer.getLine(row).length
|
||||
else
|
||||
nextLineMatch = regex.exec(@editor.getLineText(++row))
|
||||
nextLineMatch = regex.exec(@editor.buffer.getLine(++row))
|
||||
column = nextLineMatch?.index or 0
|
||||
{ row, column }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user