]> git.lyx.org Git - features.git/commitdiff
Revert "Fix completion in math when inline completion was not yet shown"
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 16 Mar 2023 10:56:20 +0000 (11:56 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 16 Mar 2023 10:58:49 +0000 (11:58 +0100)
A better fix is in the works.

This reverts commit b4211ef206827f85378b9392472fdc14e1e9f6c4.

src/frontends/qt/GuiCompleter.cpp

index 661178575b1f860e2a71ce82bedd42dd5470456f..2aee43691231e0b243f28e95f38714a462cbfcfc 100644 (file)
@@ -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, uniqueCompletionAvailable());
+       cur.inset().insertCompletion(cur, postfix, false);
        old_cursor_ = bv.cursor();
        updatePrefix(cur);