mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
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.
This commit is contained in:
parent
ab8ea2543d
commit
b4211ef206
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user