This commit is contained in:
Corey Johnson
2012-02-07 10:12:35 -08:00
parent b3d1291643
commit 0f20b0da86
2 changed files with 2 additions and 2 deletions

View File

@@ -88,7 +88,7 @@ class Cursor extends View
@setPosition({row, column})
moveLeftWhile: (regex) ->
moveLeftUntilMatch: (regex) ->
row = @getRow()
column = @getColumn()
offset = 0

View File

@@ -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: ->