sp...@lyx.org writes: > // if there is an inset at cursor, see whether it > // can be modified. > Inset * inset = cur.nextInset(); > - if (inset) > + if (inset) { > + cur.recordUndo(); > inset->dispatch(cur, tmpcmd); > + } > // if it did not work, try the underlying inset. > - if (!inset || !cur.result().dispatched()) > + if (!inset || !cur.result().dispatched()) { > + cur.recordUndo(); > cur.dispatch(tmpcmd);
Sorry, I replied maybe too fast. How come the undo is not done in the INSET_MODIFY function? I'd it is think actually where it belongs... JMarc