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:
Nathan Sobo
2012-02-28 22:36:12 -07:00
parent 478971f18f
commit 156cfabbf1
2 changed files with 12 additions and 9 deletions

View File

@@ -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