mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Fix bug in LineMap.spliceByDelta with multi-fragment screen lines
If the row following a row being replaced had multiple fragments, some of these fragments would be accidentally deleted.
This commit is contained in:
@@ -76,9 +76,8 @@ class LineMap
|
||||
delta = new Point
|
||||
for lineFragment, i in @lineFragments
|
||||
startIndex ?= i if delta.row == startRow
|
||||
break if rowCount == 0 and delta.row == stopRow
|
||||
break if delta.row == stopRow
|
||||
delta = delta.add(lineFragment[deltaType])
|
||||
break if delta.row > stopRow
|
||||
stopIndex++
|
||||
startIndex ?= i
|
||||
|
||||
|
||||
Reference in New Issue
Block a user