Fixup 0cbe0d7a: avoid double redraw when completion is finished

This commit is contained in:
Jean-Marc Lasgouttes 2023-02-22 11:32:11 +01:00
parent 0cbe0d7a3e
commit cc6dae1363

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