]> git.lyx.org Git - features.git/commitdiff
Revert "Fixup 0cbe0d7a: avoid double redraw when completion is finished"
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 22 Feb 2023 11:00:14 +0000 (12:00 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 22 Feb 2023 11:00:14 +0000 (12:00 +0100)
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

index 9fe6bf00906bf1f8b0de7ccf007c5aa23d9a317c..a780a95fb69de34a3a51acabec806aa8c48e8175 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, " "));
-       } else
-               cur.screenUpdateFlags(Update::SinglePar | Update::FitCursor);
+       }
+       cur.screenUpdateFlags(Update::SinglePar | Update::FitCursor);
 
        return true;
 }