From 0cbe0d7a3e91b97fdc5f622a9ca38b15490c0b88 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Wed, 22 Feb 2023 11:20:38 +0100 Subject: [PATCH] Make sure that screen is updated when completing math There was a missing update there. Fixes part of bug #12674. --- src/mathed/InsetMathNest.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mathed/InsetMathNest.cpp b/src/mathed/InsetMathNest.cpp index 0ef3e8f8f8..a780a95fb6 100644 --- a/src/mathed/InsetMathNest.cpp +++ b/src/mathed/InsetMathNest.cpp @@ -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; } -- 2.39.5