Force redraw after completion

Inside a math inset when completing macro names, it could lead to crashes.

Note that this processUpdateFlags is present when outside of this if() branch.
This commit is contained in:
Jean-Marc Lasgouttes 2022-01-28 17:13:30 +01:00
parent 29b386640e
commit f400a2cfa9

View File

@ -701,6 +701,10 @@ void GuiCompleter::tab()
hidePopup(); hidePopup();
hideInline(cur); hideInline(cur);
updateVisibility(false, false); updateVisibility(false, false);
// redraw if needed
if (cur.result().screenUpdate())
gui_->bufferView().processUpdateFlags(cur.result().screenUpdate());
return; return;
} }
docstring nextchar = completion.substr(prefix.size(), 1); docstring nextchar = completion.substr(prefix.size(), 1);