* remove_history_item() now updates the history cursor correctly