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:
parent
5acb5e6663
commit
c330ae9b9c
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user