From 1ac1b8e07b00cc1f258561ba75f7cec601a16fa1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Thu, 30 Aug 2001 10:10:33 +0000 Subject: [PATCH] forgot a case... git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2628 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/math_cursor.C | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/mathed/math_cursor.C b/src/mathed/math_cursor.C index 8b3acf6140..a5086ffba6 100644 --- a/src/mathed/math_cursor.C +++ b/src/mathed/math_cursor.C @@ -1289,6 +1289,11 @@ void MathCursor::interpret(string const & s) if (lastcode_ == LM_TC_TEX) { if (macroName().empty()) { + if (strchr("#$%{|}", c)) { + insert(new MathCharInset(c, LM_TC_TEX)); + lastcode_ = LM_TC_VAR; + return; + } insert(c, LM_TC_TEX); if (!isalpha(c)) { macroModeClose(); -- 2.39.2