If alignment is closed, then undo performed in visible window