X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FCursor.cpp;h=92b9110ba7629b9b7215acae81e3296df281be48;hb=2f271f61bcd514da3ab5b44d2b7bf61e12ac0c44;hp=32c0ea0cf71349d9ad1ee5436e3da5be6ba5081f;hpb=1dadaa5890f271397abe75a261dfd4acb7cb5966;p=lyx.git diff --git a/src/Cursor.cpp b/src/Cursor.cpp index 32c0ea0cf7..92b9110ba7 100644 --- a/src/Cursor.cpp +++ b/src/Cursor.cpp @@ -1829,6 +1829,8 @@ void Cursor::handleFont(string const & font) safe = cap::grabAndEraseSelection(*this); } + recordUndoInset(); + if (lastpos() != 0) { // something left in the cell if (pos() == 0) { @@ -1848,8 +1850,9 @@ void Cursor::handleFont(string const & font) } } else { // nothing left in the cell - pullArg(); + popBackward(); plainErase(); + resetAnchor(); } insert(safe); }