From: Jean-Marc Lasgouttes Date: Wed, 22 Feb 2023 11:02:10 +0000 (+0100) Subject: Fix completion in math when inline completion was not yet shown X-Git-Tag: 2.4-beta3~246 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=b4211ef2;p=lyx.git Fix completion in math when inline completion was not yet shown It is necessary to set finish=true when the completion is unique. Otherwise, one gets \upsilon instead of the proper glyph. Fixes bug #12674. --- diff --git a/src/frontends/qt/GuiCompleter.cpp b/src/frontends/qt/GuiCompleter.cpp index 2aee436912..661178575b 100644 --- a/src/frontends/qt/GuiCompleter.cpp +++ b/src/frontends/qt/GuiCompleter.cpp @@ -710,7 +710,7 @@ void GuiCompleter::tab() docstring longestCompletion = longestUniqueCompletion(); prefix = cur.inset().completionPrefix(cur); docstring postfix = longestCompletion.substr(min(longestCompletion.size(), prefix.size())); - cur.inset().insertCompletion(cur, postfix, false); + cur.inset().insertCompletion(cur, postfix, uniqueCompletionAvailable()); old_cursor_ = bv.cursor(); updatePrefix(cur);