Revert "Fix completion in math when inline completion was not yet shown"

A better fix is in the works.

This reverts commit b4211ef206.
This commit is contained in:
Jean-Marc Lasgouttes 2023-03-16 11:56:20 +01:00
parent 7bcf201f40
commit fb1c4494ea

View File

@ -710,7 +710,7 @@ void GuiCompleter::tab()
docstring longestCompletion = longestUniqueCompletion(); docstring longestCompletion = longestUniqueCompletion();
prefix = cur.inset().completionPrefix(cur); prefix = cur.inset().completionPrefix(cur);
docstring postfix = longestCompletion.substr(min(longestCompletion.size(), prefix.size())); 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(); old_cursor_ = bv.cursor();
updatePrefix(cur); updatePrefix(cur);