mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04: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