mirror of
https://github.com/atom/atom.git
synced 2026-01-25 14:59:03 -05:00
Always return an empty array in TokenizedBuffer.getInvalidatedRanges
..because TokenizedBuffer never synchronously invalidates beyond the extent of the spatial change. Signed-off-by: Nathan Sobo <nathan@github.com>
This commit is contained in:
committed by
Nathan Sobo
parent
791a19494a
commit
42079b309d
@@ -49,10 +49,7 @@ class TokenizedBuffer extends Model
|
||||
new TokenizedBufferIterator(this)
|
||||
|
||||
getInvalidatedRanges: ->
|
||||
if @invalidatedRange?
|
||||
[@invalidatedRange]
|
||||
else
|
||||
[]
|
||||
[]
|
||||
|
||||
onDidInvalidateRange: (fn) ->
|
||||
@emitter.on 'did-invalidate-range', fn
|
||||
@@ -207,8 +204,6 @@ class TokenizedBuffer extends Model
|
||||
if newEndStack and not _.isEqual(newEndStack, previousEndStack)
|
||||
@invalidateRow(end + delta + 1)
|
||||
|
||||
@invalidatedRange = Range(start, end)
|
||||
|
||||
isFoldableAtRow: (row) ->
|
||||
if @largeFileMode
|
||||
false
|
||||
|
||||
Reference in New Issue
Block a user