From ab8ea2543dc23593081fc4e9db01828e245a4e9e Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Wed, 22 Feb 2023 12:00:14 +0100 Subject: [PATCH] Revert "Fixup 0cbe0d7a: avoid double redraw when completion is finished" This is my 635th lesson that trying to be too clever is not that good. This change interferes with the yet-to-come fix to #12674. This reverts commit cc6dae1363a818e975b2b8b5d9d1409068a04b39. --- 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 9fe6bf0090..a780a95fb6 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, " ")); - } else - cur.screenUpdateFlags(Update::SinglePar | Update::FitCursor); + } + cur.screenUpdateFlags(Update::SinglePar | Update::FitCursor); return true; } -- 2.39.5