The following can probably be exploited to debug Undo's problems in mathed:
1) Insert a math inset with a 2x2 math array inside. 2) Place the cursor in position (2,1), i.e., second row, first column. 3) Press Delete. The second row of the math array will be deleted. 4) Press Undo (C-z). You will get the error message "wrong idx 2, max is 1 at level 3" which is both right and wrong: Undo has failed to restore the 2x2 matrix, where this position would legally exist. So, Undo doesn't do a proper job here. Repeated undo doesn't help either. The second array row is gone and stays gone. - Martin
pgpep4PPFGnNM.pgp
Description: PGP signature