mirror of
https://github.com/atom/atom.git
synced 2026-02-07 05:05:02 -05:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user