mirror of
https://github.com/atom/atom.git
synced 2026-02-13 08:04:56 -05:00
Don't move down a line if it's the last buffer row
This commit is contained in:
@@ -1068,7 +1068,7 @@ class TextEditor extends Model
|
||||
|
||||
# Delete lines spanned by selection and insert them on the following correct buffer row
|
||||
lines = @buffer.getTextInRange(linesRange)
|
||||
if linesRange.end.row is @buffer.getLastRow()
|
||||
if followingRow - 1 is @buffer.getLastRow()
|
||||
lines = "\n#{lines}"
|
||||
|
||||
@buffer.insert([followingRow, 0], lines)
|
||||
|
||||
Reference in New Issue
Block a user