From d250580d1ba7a876e42b89af7c2bc0d0b85f2535 Mon Sep 17 00:00:00 2001 From: Corey Johnson Date: Wed, 1 Feb 2012 16:04:19 -0800 Subject: [PATCH] Add getSelection method. Make getCursor return editors cursor var. --- src/atom/editor.coffee | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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()