Fix inline completion prefix for macro insets

As it was, the prefix was empty when completion popups were disabled.

Related to bug #12581.
This commit is contained in:
Jean-Marc Lasgouttes 2022-10-08 14:21:06 +02:00
parent 786a6edb54
commit 49fee942cf

View File

@ -1369,9 +1369,6 @@ docstring InsetMathMacro::completionPrefix(Cursor const & cur) const
if (displayMode() != DISPLAY_UNFOLDED)
return InsetMathNest::completionPrefix(cur);
if (!completionSupported(cur))
return docstring();
return "\\" + name();
}