mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
cmd-left moves the cursor to column 0 on lines only containing whitespace
Fixes #1344
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user