🐛 Fix top of a wrapped line not visible when moving it up

This commit is contained in:
abe33
2015-11-04 19:14:44 +01:00
parent aa7f87bd62
commit 80553028c1

View File

@@ -949,7 +949,7 @@ class TextEditor extends Model
@setSelectedBufferRanges(newSelectionRanges, {autoscroll: false, preserveFolds: true})
@autoIndentSelectedRows() if @shouldAutoIndent()
@scrollToBufferPosition([newSelectionRanges[0].start.row + 2, 0])
@scrollToBufferPosition([newSelectionRanges[0].start.row, 0])
# Move lines intersecting the most recent selection or muiltiple selections down by one row in screen
# coordinates.