diff --git a/src/Text3.cpp b/src/Text3.cpp index 5fe69e6708..bcb13e1e3b 100644 --- a/src/Text3.cpp +++ b/src/Text3.cpp @@ -1499,6 +1499,7 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd) case LFUN_MATH_MATRIX: case LFUN_MATH_DELIM: case LFUN_MATH_BIGDELIM: { + cur.recordUndo(); cap::replaceSelection(cur); cur.insert(new InsetMathHull(hullSimple)); checkAndActivateInset(cur, true);