]> git.lyx.org Git - lyx.git/commitdiff
Fix inline completion prefix for macro insets
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sat, 8 Oct 2022 12:21:06 +0000 (14:21 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sat, 8 Oct 2022 12:22:18 +0000 (14:22 +0200)
As it was, the prefix was empty when completion popups were disabled.

Related to bug #12581.

src/mathed/InsetMathMacro.cpp

index 3f4da749abd603313a80d90b0d72ccc16168ff53..7c9efa4859c0d2e49d1f45a0ddf92c72bb76dc0a 100644 (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();
 }