mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-10 20:04:46 +00:00
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:
parent
b15efeb111
commit
a38728ff38
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user