mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -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) {
|
||||
if (win->data == menu) {
|
||||
del_from_list(win);
|
||||
add_at_pos((struct window *) &term->windows, win);
|
||||
add_to_list(term->windows, win);
|
||||
display_mainmenu(term, menu);
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user