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