cmd-left moves the cursor to column 0 on lines only containing whitespace

Fixes #1344
This commit is contained in:
probablycorey
2013-12-30 13:54:04 -08:00
parent 8e970b64b8
commit bac76784e0
2 changed files with 8 additions and 3 deletions

View File

@@ -261,9 +261,7 @@ class Cursor
screenline = @editor.lineForScreenRow(row)
goalColumn = screenline.text.search(/\S/)
return if goalColumn == -1
goalColumn = 0 if goalColumn == column
goalColumn = 0 if goalColumn == column or goalColumn == -1
@setScreenPosition([row, goalColumn])
# Public: Moves the cursor to the beginning of the buffer line, skipping all