mirror of
https://github.com/atom/atom.git
synced 2026-01-22 21:38:10 -05:00
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:
@@ -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.
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user