mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-12 16:50:39 +00:00
branch: Fix bug #7125: Insertion of a math macro cannot be undone.
see r37088. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@37099 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
0e955f719e
commit
fab3cd5dfe
@ -1671,6 +1671,7 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
|
||||
if (cmd.argument().empty())
|
||||
cur.errorMessage(from_utf8(N_("Missing argument")));
|
||||
else {
|
||||
cur.recordUndo();
|
||||
string s = to_utf8(cmd.argument());
|
||||
string const s1 = token(s, ' ', 1);
|
||||
int const nargs = s1.empty() ? 0 : convert<int>(s1);
|
||||
|
Loading…
Reference in New Issue
Block a user