mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Add isOnEOL method to cursor
This commit is contained in:
@@ -38,6 +38,9 @@ class Cursor extends View
|
||||
getRow: ->
|
||||
@getPosition().row
|
||||
|
||||
isOnEOL: ->
|
||||
@getColumn() == @editor.getCurrentLine().length
|
||||
|
||||
moveUp: ->
|
||||
{ row, column } = @getPosition()
|
||||
column = @goalColumn if @goalColumn?
|
||||
|
||||
Reference in New Issue
Block a user