mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-11 11:08:41 +00:00
Let LFUN_MATH_SPACE use various spaces we support.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25266 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
f7b5e343e3
commit
8ab36ddef7
@ -1028,11 +1028,18 @@ void InsetMathNest::doDispatch(Cursor & cur, FuncRequest & cmd)
|
||||
}
|
||||
|
||||
case LFUN_SPACE_INSERT:
|
||||
case LFUN_MATH_SPACE:
|
||||
cur.recordUndoSelection();
|
||||
cur.insert(MathAtom(new InsetMathSpace(from_ascii(","))));
|
||||
break;
|
||||
|
||||
case LFUN_MATH_SPACE:
|
||||
cur.recordUndoSelection();
|
||||
if (cmd.argument().empty())
|
||||
cur.insert(MathAtom(new InsetMathSpace(from_ascii(","))));
|
||||
else
|
||||
cur.insert(MathAtom(new InsetMathSpace(cmd.argument())));
|
||||
break;
|
||||
|
||||
case LFUN_ERT_INSERT:
|
||||
// interpret this as if a backslash was typed
|
||||
cur.recordUndo();
|
||||
|
Loading…
Reference in New Issue
Block a user