/* also try to jump to a similar position if possible */
/* rn theres a bug if old menu is empty */
new_pos = min(get_selected_item(old_menu), get_menu_length(new_menu)-1);
/* also try to jump to a similar position if possible */
/* rn theres a bug if old menu is empty */
new_pos = min(get_selected_item(old_menu), get_menu_length(new_menu)-1);