mirror of
https://github.com/atom/atom.git
synced 2026-02-08 21:55:05 -05:00
Adapt to new text-buffer API
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user