mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Don't update editor's display if its edit session is null or destroyed
This commit is contained in:
committed by
probablycorey
parent
c1e226d6a3
commit
15144514bb
@@ -811,7 +811,8 @@ class Editor extends View
|
||||
@pendingDisplayUpdate = false
|
||||
|
||||
updateDisplay: (options={}) ->
|
||||
return unless @attached
|
||||
return unless @attached and @activeEditSession
|
||||
return if @activeEditSession.destroyed
|
||||
@updateRenderedLines()
|
||||
@highlightCursorLine()
|
||||
@updateCursorViews()
|
||||
|
||||
Reference in New Issue
Block a user