commit b4650f0a194ccd0f1a3eadd67ed4af1cbefcf51d
Author: Enrico Forestieri <[email protected]>
Date:   Wed Jun 25 23:50:13 2025 +0200

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

diff --git a/src/Cursor.cpp b/src/Cursor.cpp
index daa9e562bb..526ed27402 100644
--- a/src/Cursor.cpp
+++ b/src/Cursor.cpp
@@ -1827,7 +1827,8 @@ bool Cursor::macroModeClose(bool cancel)
                                          || it->second.inset == "oldfont"
                                          || it->second.inset == "textsize"
                                          || it->second.inset == "mbox"
-                                         || it->second.inset == "intertext"));
+                                         || it->second.inset == "intertext"
+                                         || it->second.name == "underbar"));
        bool ert_macro = !user_macro && it == words.end() && atomAsMacro;
 
        if (in && in->currentMode() == Inset::TEXT_MODE
-- 
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to