From: Juergen Spitzmueller Date: Wed, 2 Mar 2022 07:11:34 +0000 (+0100) Subject: Encodings::fromLaTeXCommand: properly set needsTermination on early exit X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;ds=sidebyside;h=39c0b322f7b140ca9a9c1544adf05f296a5ea28f;p=features.git Encodings::fromLaTeXCommand: properly set needsTermination on early exit --- diff --git a/src/Encoding.cpp b/src/Encoding.cpp index 0c8d085a19..a4c706bd3b 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; } }