commit 5012a825491ac2ae17323455ca9b1b05e08bbbec
Author: Juergen Spitzmueller <[email protected]>
Date:   Thu Aug 14 09:30:17 2025 +0200

    Enable caps in cleveref and zref-clever context menu
---
 src/insets/InsetRef.cpp | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/src/insets/InsetRef.cpp b/src/insets/InsetRef.cpp
index 4076d2aa20..35a90ea791 100644
--- a/src/insets/InsetRef.cpp
+++ b/src/insets/InsetRef.cpp
@@ -209,8 +209,12 @@ bool InsetRef::getStatus(Cursor & cur, FuncRequest const & 
cmd,
        else if (arg == "toggle-caps")
                pstring = "caps";
        if (!pstring.empty()) {
-               status.setEnabled(buffer().params().xref_package == "refstyle" 
&&
-                       params().getCmdName() == "formatted");
+               if (pstring == "plural")
+                       status.setEnabled(buffer().params().xref_package == 
"refstyle"
+                               && params().getCmdName() == "formatted");
+               else
+                       
status.setEnabled(!prefixIs(buffer().params().xref_package, "prettyref")
+                               && params().getCmdName() == "formatted");
                bool const isSet = (getParam(pstring) == "true");
                status.setOnOff(isSet);
                return true;
@@ -222,7 +226,8 @@ bool InsetRef::getStatus(Cursor & cur, FuncRequest const & 
cmd,
                return true;
        }
        if (arg == "toggle-nolink") {
-               status.setEnabled(params().getCmdName() != "formatted" && 
params().getCmdName() != "labelonly");
+               status.setEnabled(params().getCmdName() != "formatted"
+                       && params().getCmdName() != "labelonly");
                bool const isSet = (getParam("nolink") == "true");
                status.setOnOff(isSet);
                return true;
-- 
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to