use enter to choose the snapshot point of undo-tree