Always move to end of current line

This commit is contained in:
Kevin Sawicki
2014-10-16 11:12:34 -07:00
parent 7f6cc8a100
commit 4889e03cf2

View File

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