Ctrl+Z after using replace mode works weird. It considers each character typed in replace mode as two actions (delete existing character, then insert another one).
I was surprised, but it is Qt bug.
I workarounded it. Now text is restored with one Undo action, but cursor is placed after restored character, not on it.
Yes, as I mentioned, it is workaround only for one case - 1 symbol typed.
It looks like Digia is not going to implement good Undo for replace mode.
I also will not do it. Minor feature will require a lot of time and very complicated code.
Ctrl+Z after using replace mode works weird. It considers each character typed in replace mode as two actions (delete existing character, then insert another one).