diff --git a/src/atom/editor.coffee b/src/atom/editor.coffee index 373c36d00..9006f4555 100644 --- a/src/atom/editor.coffee +++ b/src/atom/editor.coffee @@ -175,8 +175,10 @@ class Editor extends Template else @scrollLeft() + @width() + getCursor: -> @cursor + getSelection: -> @selection + getCurrentLine: -> @buffer.getLine(@getCursorRow()) - getCursor: -> @selection.cursor moveCursorUp: -> @cursor.moveUp() moveCursorDown: -> @cursor.moveDown() moveCursorRight: -> @cursor.moveRight()