]> git.lyx.org Git - features.git/commitdiff
Make sure that screen is updated when completing math
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 22 Feb 2023 10:20:38 +0000 (11:20 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 22 Feb 2023 10:23:10 +0000 (11:23 +0100)
There was a missing update there.

Fixes part of bug #12674.

src/mathed/InsetMathNest.cpp

index 0ef3e8f8f830642503de645ddfc79eaf3a1cf4e6..a780a95fb69de34a3a51acabec806aa8c48e8175 100644 (file)
@@ -2144,6 +2144,7 @@ bool InsetMathNest::insertCompletion(Cursor & cur, docstring const & s, bool fin
 #endif
                lyx::dispatch(FuncRequest(LFUN_SELF_INSERT, " "));
        }
+       cur.screenUpdateFlags(Update::SinglePar | Update::FitCursor);
 
        return true;
 }