clear selection before undo/redog