mirror of
https://github.com/atom/atom.git
synced 2026-02-04 19:54:59 -05:00
Fix exception when moving to the end of word when there *is* no word
This commit is contained in:
@@ -130,7 +130,8 @@ class Cursor
|
||||
@setBufferPosition(@getBeginningOfCurrentWordBufferPosition())
|
||||
|
||||
moveToEndOfWord: ->
|
||||
@setBufferPosition(@getEndOfCurrentWordBufferPosition())
|
||||
if position = @getEndOfCurrentWordBufferPosition()
|
||||
@setBufferPosition(position)
|
||||
|
||||
getBeginningOfCurrentWordBufferPosition: (options = {}) ->
|
||||
allowPrevious = options.allowPrevious ? true
|
||||
|
||||
Reference in New Issue
Block a user