Fix undo boundary in recursive edit (Bug#23632)