]> git.lyx.org Git - features.git/commitdiff
forgot a case...
authorAndré Pönitz <poenitz@gmx.net>
Thu, 30 Aug 2001 10:10:33 +0000 (10:10 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Thu, 30 Aug 2001 10:10:33 +0000 (10:10 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2628 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/math_cursor.C

index 8b3acf61402ee62776121bf2b197d117ec1fd00c..a5086ffba6d529ae709cc5def1adfc922830a8dd 100644 (file)
@@ -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();