From cc6dae1363a818e975b2b8b5d9d1409068a04b39 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Wed, 22 Feb 2023 11:32:11 +0100 Subject: [PATCH] Fixup 0cbe0d7a: avoid double redraw when completion is finished --- src/mathed/InsetMathNest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mathed/InsetMathNest.cpp b/src/mathed/InsetMathNest.cpp index a780a95fb6..9fe6bf0090 100644 --- a/src/mathed/InsetMathNest.cpp +++ b/src/mathed/InsetMathNest.cpp @@ -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; }