[LyX/master] Revert "Fix completion in math when inline completion was not yet shown"

Jean-Marc Lasgouttes lasgouttes at lyx.org
Thu Mar 16 09:55:32 UTC 2023


commit fb1c4494ea43bbbd7b54ea40272d6c3ae76c372e
Author: Jean-Marc Lasgouttes <lasgouttes at lyx.org>
Date:   Thu Mar 16 11:56:20 2023 +0100

    Revert "Fix completion in math when inline completion was not yet shown"
    
    A better fix is in the works.
    
    This reverts commit b4211ef206827f85378b9392472fdc14e1e9f6c4.
---
 src/frontends/qt/GuiCompleter.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/frontends/qt/GuiCompleter.cpp b/src/frontends/qt/GuiCompleter.cpp
index 6611785..2aee436 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, uniqueCompletionAvailable());
+	cur.inset().insertCompletion(cur, postfix, false);
 	old_cursor_ = bv.cursor();
 	updatePrefix(cur);
 


More information about the lyx-cvs mailing list