[LyX/master] Force redraw after completion
Jean-Marc Lasgouttes
lasgouttes at lyx.org
Fri Jan 28 16:37:24 UTC 2022
commit f400a2cfa9b5552c103da0b7e336b6964dfa5b2d
Author: Jean-Marc Lasgouttes <lasgouttes at lyx.org>
Date: Fri Jan 28 17:13:30 2022 +0100
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.
---
src/frontends/qt/GuiCompleter.cpp | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/frontends/qt/GuiCompleter.cpp b/src/frontends/qt/GuiCompleter.cpp
index 6fd39d3..6effd3d 100644
--- a/src/frontends/qt/GuiCompleter.cpp
+++ b/src/frontends/qt/GuiCompleter.cpp
@@ -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);
More information about the lyx-cvs
mailing list