[LyX/2.5.x] Do not allow to split InsetArgument

Juergen Spitzmueller spitz at lyx.org
Sun Feb 22 16:41:00 UTC 2026


commit e2f57ee5e543c9e1fd97973b2e1e53fd1adc4e83
Author: Juergen Spitzmueller <spitz at lyx.org>
Date:   Tue Feb 17 09:06:25 2026 +0100

    Do not allow to split InsetArgument
    
    Candidate for 2.5.1
    
    (cherry picked from commit 8b506f860bcd11d00a2d1a370ba4e7500324c23f)
---
 src/insets/InsetArgument.cpp | 4 ++++
 status.25x                   | 2 ++
 2 files changed, 6 insertions(+)

diff --git a/src/insets/InsetArgument.cpp b/src/insets/InsetArgument.cpp
index 0c1afec0b7..8344b2c909 100644
--- a/src/insets/InsetArgument.cpp
+++ b/src/insets/InsetArgument.cpp
@@ -242,6 +242,10 @@ bool InsetArgument::getStatus(Cursor & cur, FuncRequest const & cmd,
 {
 	switch (cmd.action()) {
 
+	case LFUN_INSET_SPLIT:
+		flag.setEnabled(false);
+		return true;
+
 	case LFUN_INSET_MODIFY: {
 		string const first_arg = cmd.getArg(0);
 		if (first_arg == "changetype") {
diff --git a/status.25x b/status.25x
index 36d8eb72db..13b422c813 100644
--- a/status.25x
+++ b/status.25x
@@ -48,6 +48,8 @@ What's new
 
 * USER INTERFACE
 
+- Do not allow to split InsetArgument which does not make sense.
+
 
 
 * INTERNALS


More information about the lyx-cvs mailing list