From 622caee4469da487074f5fbec3e4a87760dbae0f Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Mon, 23 Feb 2015 17:18:53 -0800 Subject: [PATCH] Correctly store which lines we have already measured --- src/lines-component.coffee | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lines-component.coffee b/src/lines-component.coffee index d6498772d..9619a175c 100644 --- a/src/lines-component.coffee +++ b/src/lines-component.coffee @@ -277,10 +277,10 @@ class LinesComponent for id, lineState of @oldState.lines unless @measuredLines.has(id) lineNode = @lineNodesByLineId[id] - @measureCharactersInLine(lineState, lineNode) + @measureCharactersInLine(id, lineState, lineNode) return - measureCharactersInLine: (tokenizedLine, lineNode) -> + measureCharactersInLine: (lineId, tokenizedLine, lineNode) -> rangeForMeasurement = null iterator = null charIndex = 0 @@ -322,7 +322,7 @@ class LinesComponent charIndex += charLength - @measuredLines.add(tokenizedLine.id) + @measuredLines.add(lineId) clearScopedCharWidths: -> @measuredLines.clear()