commit ca30680076388239ba7709e8b0d0d01e6c1880cc
Author: Enrico Forestieri <[email protected]>
Date:   Sat Jun 28 21:20:15 2025 +0200

    No need to wrap \underbar in \text
---
 src/Cursor.cpp | 3 ++-
 status.24x     | 2 ++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/Cursor.cpp b/src/Cursor.cpp
index 13c99ca0bb..5f8b01d048 100644
--- a/src/Cursor.cpp
+++ b/src/Cursor.cpp
@@ -1818,7 +1818,8 @@ bool Cursor::macroModeClose(bool cancel)
                || (it != words.end() && (it->second.inset == "font"
                                          || it->second.inset == "oldfont"
                                          || it->second.inset == "textsize"
-                                         || it->second.inset == "mbox"));
+                                         || it->second.inset == "mbox"
+                                         || it->second.name == "underbar"));
        bool ert_macro = !user_macro && it == words.end() && atomAsMacro;
 
        if (in && in->currentMode() == Inset::TEXT_MODE
diff --git a/status.24x b/status.24x
index 5d10b8ad32..86896eaa8b 100644
--- a/status.24x
+++ b/status.24x
@@ -55,6 +55,8 @@ What's new
 
 - Fix false warning when closing document settings with read-only document.
 
+- In mathed, do not wrap \underbar in \text.
+
 
 * INTERNALS
 
-- 
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to