mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
💄
This commit is contained in:
@@ -88,7 +88,7 @@ class Cursor extends View
|
||||
|
||||
@setPosition({row, column})
|
||||
|
||||
moveLeftWhile: (regex) ->
|
||||
moveLeftUntilMatch: (regex) ->
|
||||
row = @getRow()
|
||||
column = @getColumn()
|
||||
offset = 0
|
||||
|
||||
@@ -31,7 +31,7 @@ class MoveDown extends Motion
|
||||
|
||||
class MoveToPreviousWord extends Motion
|
||||
execute: ->
|
||||
@editor.cursor.moveLeftWhile /^\s*(\w+|[^A-Za-z0-9_ ]+)/g
|
||||
@editor.getCursor().moveLeftUntilMatch /^\s*(\w+|[^A-Za-z0-9_ ]+)/g
|
||||
|
||||
class MoveToNextWord extends Motion
|
||||
execute: ->
|
||||
|
||||
Reference in New Issue
Block a user