Adapt to new text-buffer API

This commit is contained in:
Nathan Sobo
2016-01-26 12:24:48 -07:00
parent 21b1f79fab
commit 47338253db

View File

@@ -1042,8 +1042,8 @@ class TextEditorPresenter
break unless @tokenIterator.getStartScreenPosition().row is screenRow
line
invalidateLines: ({start, replacedExtent, replacementExtent}) ->
{touch} = @lineMarkerIndex.splice(start, replacedExtent, replacementExtent)
invalidateLines: ({start, oldExtent, newExtent}) ->
{touch} = @lineMarkerIndex.splice(start, oldExtent, newExtent)
touch.forEach (lineId) =>
@lineMarkerIndex.delete(lineId)
@linesById.delete(lineId)