use "undo-in-progress" instead of testing the current command