mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Add getWordUnderCursor to Editor and EditSession
This commit is contained in:
@@ -498,6 +498,9 @@ class EditSession
|
||||
getCurrentParagraphBufferRange: ->
|
||||
@getCursor().getCurrentParagraphBufferRange()
|
||||
|
||||
getWordUnderCursor: (options) ->
|
||||
@getTextInBufferRange(@getCursor().getCurrentWordBufferRange(options))
|
||||
|
||||
moveCursorUp: (lineCount) ->
|
||||
@moveCursors (cursor) -> cursor.moveUp(lineCount)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user