app.composer.show: Trigger synchronous redraw

This is needed to have access to the newly created SuperTextarea
instance (app.composer.editor) directly after calling show().

Discovered when making ext-mentions work with the Composer state
changes. As far as I could reconstruct, a synchronous redraw was also
triggered in this situation before the changes in #2161.
This commit is contained in:
Franz Liedke 2020-09-04 18:58:40 +02:00
parent 384edfa52b
commit 8e3e8826f9
No known key found for this signature in database
GPG Key ID: 9A0231A879B055F4

View File

@ -93,7 +93,7 @@ class ComposerState {
if (this.position === ComposerState.Position.NORMAL || this.position === ComposerState.Position.FULLSCREEN) return;
this.position = ComposerState.Position.NORMAL;
m.redraw();
m.redraw(true);
}
/**