1
0
mirror of https://git.lyx.org/repos/lyx.git synced 2025-01-10 02:54:09 +00:00

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();
hideInline(cur);
updateVisibility(false, false);
// redraw if needed
if (cur.result().screenUpdate())
gui_->bufferView().processUpdateFlags(cur.result().screenUpdate());
return;
}
docstring nextchar = completion.substr(prefix.size(), 1);