Don't update editor's display if its edit session is null or destroyed

This commit is contained in:
Corey Johnson & Nathan Sobo
2013-02-27 18:26:21 -07:00
committed by probablycorey
parent c1e226d6a3
commit 15144514bb

View File

@@ -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()