commit f400a2cfa9b5552c103da0b7e336b6964dfa5b2d
Author: Jean-Marc Lasgouttes <[email protected]>
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);
-- 
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to