From: Jean-Marc Lasgouttes Date: Wed, 22 Feb 2023 10:32:11 +0000 (+0100) Subject: Fixup 0cbe0d7a: avoid double redraw when completion is finished X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=cc6dae1363a818e975b2b8b5d9d1409068a04b39;p=features.git Fixup 0cbe0d7a: avoid double redraw when completion is finished --- 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; }