]> git.lyx.org Git - lyx.git/commitdiff
Fixup 0cbe0d7a: avoid double redraw when completion is finished
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 22 Feb 2023 10:32:11 +0000 (11:32 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 22 Feb 2023 10:32:11 +0000 (11:32 +0100)
src/mathed/InsetMathNest.cpp

index a780a95fb69de34a3a51acabec806aa8c48e8175..9fe6bf00906bf1f8b0de7ccf007c5aa23d9a317c 100644 (file)
@@ -2143,8 +2143,8 @@ bool InsetMathNest::insertCompletion(Cursor & cur, docstring const & s, bool fin
                MathCompletionList::addToFavorites(inset->name());
 #endif
                lyx::dispatch(FuncRequest(LFUN_SELF_INSERT, " "));
-       }
-       cur.screenUpdateFlags(Update::SinglePar | Update::FitCursor);
+       } else
+               cur.screenUpdateFlags(Update::SinglePar | Update::FitCursor);
 
        return true;
 }