From b4211ef206827f85378b9392472fdc14e1e9f6c4 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Wed, 22 Feb 2023 12:02:10 +0100 Subject: [PATCH] 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. --- src/frontends/qt/GuiCompleter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);