mirror of
https://github.com/atom/atom.git
synced 2026-02-08 21:55:05 -05:00
Add getSelection method. Make getCursor return editors cursor var.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user