]> git.lyx.org Git - features.git/commitdiff
enable entering \mathbf#1 directly
authorAndré Pönitz <poenitz@gmx.net>
Thu, 21 Mar 2002 16:13:17 +0000 (16:13 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Thu, 21 Mar 2002 16:13:17 +0000 (16:13 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3797 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/math_cursor.C

index 2876e46e5c2d3958acf712cc65a42e993a7f2a2b..1200f2cc3e953372c90fa390add33238bcfb165f 100644 (file)
@@ -1410,7 +1410,7 @@ bool MathCursor::interpret(char c)
                int n = c - '0';
                MathMacroTemplate * p = formula()->par()->asMacroTemplate();
                if (p && 1 <= n && n <= p->numargs())
-                       insert(MathAtom(new MathMacroArgument(c - '0')));
+                       insert(MathAtom(new MathMacroArgument(c - '0', lastcode_)));
                else {
                        insert(MathAtom(new MathSpecialCharInset('#')));
                        interpret(c); // try again