commit 39c0b322f7b140ca9a9c1544adf05f296a5ea28f
Author: Juergen Spitzmueller <sp...@lyx.org>
Date:   Wed Mar 2 08:11:34 2022 +0100

    Encodings::fromLaTeXCommand: properly set needsTermination on early exit
---
 src/Encoding.cpp |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/Encoding.cpp b/src/Encoding.cpp
index 0c8d085..a4c706b 100644
--- a/src/Encoding.cpp
+++ b/src/Encoding.cpp
@@ -389,6 +389,7 @@ docstring Encodings::fromLaTeXCommand(docstring const & 
cmd, int cmdtype,
                                if (command == cmd) {
                                        docstring value;
                                        value += unicodeSymbol.first;
+                                       needsTermination = 
!unicodeSymbol.second.mathNoTermination();
                                        return value;
                                }
                        }
@@ -398,6 +399,7 @@ docstring Encodings::fromLaTeXCommand(docstring const & 
cmd, int cmdtype,
                                if (command == cmd) {
                                        docstring value;
                                        value += unicodeSymbol.first;
+                                       needsTermination = 
!unicodeSymbol.second.textNoTermination();
                                        return value;
                                }
                        }
-- 
lyx-cvs mailing list
lyx-cvs@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to