Fix split-selection-into-lines

Don’t create cursor on last row when selection on row is empty


Fixes #1704
Closes #3080
This commit is contained in:
Ben Ogle
2014-07-25 11:29:40 -07:00
parent 3bd1ec08e1
commit c748fc49bb

View File

@@ -1762,7 +1762,7 @@ class Editor extends Model
{row} = start
while ++row < end.row
@addSelectionForBufferRange([[row, 0], [row, Infinity]])
@addSelectionForBufferRange([[end.row, 0], [end.row, end.column]])
@addSelectionForBufferRange([[end.row, 0], [end.row, end.column]]) unless end.column is 0
# Public: For each selection, transpose the selected text.
#