]> git.lyx.org Git - features.git/commitdiff
Encodings::fromLaTeXCommand: properly set needsTermination on early exit
authorJuergen Spitzmueller <spitz@lyx.org>
Wed, 2 Mar 2022 07:11:34 +0000 (08:11 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Wed, 2 Mar 2022 07:11:34 +0000 (08:11 +0100)
src/Encoding.cpp

index 0c8d085a19689f51b445da9067ed06849d37e6bc..a4c706bd3b409b30a68e46ef4b3ca3f96fe2630e 100644 (file)
@@ -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;
                                }
                        }