mirror of
https://github.com/atom/atom.git
synced 2026-01-25 14:59:03 -05:00
LineMap.spliceScreenRow can replace multiple fragments at row 0
Subtle bug where the falsiness of 0 was causing line fragments on the 0th row to be skipped
This commit is contained in:
@@ -33,7 +33,7 @@ class LineMap
|
||||
delta = new Point
|
||||
|
||||
for screenLine, i in @screenLines
|
||||
startIndex = i if delta.row == startRow and not startIndex
|
||||
startIndex ?= i if delta.row == startRow
|
||||
nextDelta = delta.add(screenLine[deltaType])
|
||||
break if nextDelta.row > stopRow
|
||||
delta = nextDelta
|
||||
|
||||
Reference in New Issue
Block a user