From: Vincent van Ravesteijn Date: Mon, 3 Jan 2011 20:39:14 +0000 (+0000) Subject: Fix bug #7125: Insertion of a math macro cannot be undone. X-Git-Tag: 2.0.0~1191 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=996b707a6f6ca666dc0109f2941ce75bb7abc839;p=features.git Fix bug #7125: Insertion of a math macro cannot be undone. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37088 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/Text3.cpp b/src/Text3.cpp index dc67626396..c6f3eb70b9 100644 --- a/src/Text3.cpp +++ b/src/Text3.cpp @@ -1754,6 +1754,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(s1);