enable entering \mathbf#1 directly

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3797 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2002-03-21 16:13:17 +00:00
parent b15efeb111
commit a38728ff38

View 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