undo/redo history should be reset when editing a new path