Add getSelection method. Make getCursor return editors cursor var.

This commit is contained in:
Corey Johnson
2012-02-01 16:04:19 -08:00
parent a3332571a9
commit d250580d1b

View File

@@ -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()