Schedule redraw when updating an invisible editor

The redrawOnReattach flag will now be set when update
display is called on an invisible editor so that if the
editor is detached or hidden before the next update was
processed it will be performed when reattached.
This commit is contained in:
Kevin Sawicki
2013-04-08 12:50:05 -07:00
parent 63017b7800
commit b7b4dcda24
2 changed files with 21 additions and 1 deletions

View File

@@ -783,7 +783,9 @@ class Editor extends View
updateDisplay: (options={}) ->
return unless @attached and @activeEditSession
return if @activeEditSession.destroyed
return unless @isVisible()
unless @isVisible()
@redrawOnReattach = true
return
@updateRenderedLines()
@highlightCursorLine()