mirror of
https://github.com/atom/atom.git
synced 2026-02-09 06:05:11 -05:00
Move-to-first-character-of-line no longer explodes on empty lines
This commit is contained in:
@@ -144,6 +144,7 @@ class Cursor extends View
|
||||
newPosition = null
|
||||
@editor.scanInRange /^\s*/, range, (match, matchRange) =>
|
||||
newPosition = matchRange.end
|
||||
return unless newPosition
|
||||
newPosition = [position.row, 0] if newPosition.isEqual(position)
|
||||
@setBufferPosition(newPosition)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user