mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Always move to end of current line
This commit is contained in:
@@ -491,10 +491,9 @@ class Selection extends Model
|
||||
insertSpace = nextRow <= @editor.buffer.getLastRow() and
|
||||
@editor.buffer.lineLengthForRow(nextRow) > 0 and
|
||||
@editor.buffer.lineLengthForRow(currentRow) > 0
|
||||
@insertText(' ') if insertSpace
|
||||
|
||||
if insertSpace
|
||||
@insertText(' ')
|
||||
@cursor.moveToEndOfLine()
|
||||
@cursor.moveToEndOfLine()
|
||||
|
||||
# Remove leading whitespace from the line below
|
||||
@modifySelection =>
|
||||
|
||||
Reference in New Issue
Block a user