mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Don’t update screen lines if DisplayBuffer has been destroyed
This commit is contained in:
@@ -1195,6 +1195,7 @@ class DisplayBuffer extends Model
|
||||
|
||||
updateScreenLines: (startBufferRow, endBufferRow, bufferDelta=0, options={}) ->
|
||||
return if @largeFileMode
|
||||
return if @isDestroyed()
|
||||
|
||||
startBufferRow = @rowMap.bufferRowRangeForBufferRow(startBufferRow)[0]
|
||||
endBufferRow = @rowMap.bufferRowRangeForBufferRow(endBufferRow - 1)[1]
|
||||
|
||||
Reference in New Issue
Block a user