Add isOnEOL method to cursor

This commit is contained in:
Corey Johnson
2012-02-06 12:01:52 -08:00
parent 4a8d03b966
commit f3eb6fc66c
2 changed files with 11 additions and 0 deletions

View File

@@ -38,6 +38,9 @@ class Cursor extends View
getRow: ->
@getPosition().row
isOnEOL: ->
@getColumn() == @editor.getCurrentLine().length
moveUp: ->
{ row, column } = @getPosition()
column = @goalColumn if @goalColumn?