1
0
mirror of https://github.com/rkd77/elinks.git synced 2025-01-03 14:57:44 -05:00

do_mainmenu: use add_to_list instead of add_at_pos

This commit is contained in:
Miciah Dashiel Butler Masters 2006-06-02 03:27:55 +00:00 committed by Miciah Dashiel Butler Masters
parent 5acb5e6663
commit c330ae9b9c

View File

@ -942,7 +942,7 @@ do_mainmenu(struct terminal *term, struct menu_item *items,
foreach (win, term->windows) { foreach (win, term->windows) {
if (win->data == menu) { if (win->data == menu) {
del_from_list(win); del_from_list(win);
add_at_pos((struct window *) &term->windows, win); add_to_list(term->windows, win);
display_mainmenu(term, menu); display_mainmenu(term, menu);
break; break;
} }