]> git.lyx.org Git - features.git/commitdiff
smaller steps for undo when deleting stuff in mathed
authorAndré Pönitz <poenitz@gmx.net>
Thu, 16 Jan 2003 11:34:10 +0000 (11:34 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Thu, 16 Jan 2003 11:34:10 +0000 (11:34 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5966 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/formulabase.C

index 1245cd44f3cd0cd95bb903dc810fcfd4183c511c..d2295a967eba416a6b99549e5c7b6d358bd0f352 100644 (file)
@@ -560,14 +560,14 @@ Inset::RESULT InsetFormulaBase::localDispatch(FuncRequest const & cmd)
 
        case LFUN_DELETE_WORD_BACKWARD:
        case LFUN_BACKSPACE:
-               bv->lockedInsetStoreUndo(Undo::DELETE);
+               bv->lockedInsetStoreUndo(Undo::EDIT);
                mathcursor->backspace();
                updateLocal(bv, true);
                break;
 
        case LFUN_DELETE_WORD_FORWARD:
        case LFUN_DELETE:
-               bv->lockedInsetStoreUndo(Undo::DELETE);
+               bv->lockedInsetStoreUndo(Undo::EDIT);
                mathcursor->erase();
                bv->updateInset(this, true);
                break;