From: Jean-Marc Lasgouttes Date: Sat, 8 Oct 2022 12:21:06 +0000 (+0200) Subject: Fix inline completion prefix for macro insets X-Git-Tag: 2.4-beta2~464 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=49fee942cf359abc5f512891ff7dfa3a260afae5;p=lyx.git Fix inline completion prefix for macro insets As it was, the prefix was empty when completion popups were disabled. Related to bug #12581. --- diff --git a/src/mathed/InsetMathMacro.cpp b/src/mathed/InsetMathMacro.cpp index 3f4da749ab..7c9efa4859 100644 --- a/src/mathed/InsetMathMacro.cpp +++ b/src/mathed/InsetMathMacro.cpp @@ -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(); }