mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -05:00
do_file_menu: Correct the order of arguments in SET_MENU_ITEM invocations.
The last two parameters are hotkey_state_ and hotkey_pos_, not vice versa. This bug did not affect the binary because HKS_SHOW is defined as 0 anyway.
This commit is contained in:
parent
75e292efe6
commit
19bb5f02d1
@ -364,7 +364,7 @@ do_file_menu(struct terminal *term, void *xxx, void *ses_)
|
|||||||
if (o) {
|
if (o) {
|
||||||
SET_MENU_ITEM(e, N_("Open ~new window"), NULL, ACT_MAIN_OPEN_NEW_WINDOW,
|
SET_MENU_ITEM(e, N_("Open ~new window"), NULL, ACT_MAIN_OPEN_NEW_WINDOW,
|
||||||
open_in_new_window, send_open_new_window,
|
open_in_new_window, send_open_new_window,
|
||||||
(o - 1) ? SUBMENU : 0, 0, HKS_SHOW);
|
(o - 1) ? SUBMENU : 0, HKS_SHOW, 0);
|
||||||
e++;
|
e++;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -382,14 +382,14 @@ do_file_menu(struct terminal *term, void *xxx, void *ses_)
|
|||||||
x = 1;
|
x = 1;
|
||||||
if (!anonymous && can_open_os_shell(term->environment)) {
|
if (!anonymous && can_open_os_shell(term->environment)) {
|
||||||
SET_MENU_ITEM(e, N_("~OS shell"), NULL, ACT_MAIN_OPEN_OS_SHELL,
|
SET_MENU_ITEM(e, N_("~OS shell"), NULL, ACT_MAIN_OPEN_OS_SHELL,
|
||||||
NULL, NULL, 0, 0, HKS_SHOW);
|
NULL, NULL, 0, HKS_SHOW, 0);
|
||||||
e++;
|
e++;
|
||||||
x = 0;
|
x = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (can_resize_window(term->environment)) {
|
if (can_resize_window(term->environment)) {
|
||||||
SET_MENU_ITEM(e, N_("Resize t~erminal"), NULL, ACT_MAIN_TERMINAL_RESIZE,
|
SET_MENU_ITEM(e, N_("Resize t~erminal"), NULL, ACT_MAIN_TERMINAL_RESIZE,
|
||||||
NULL, NULL, 0, 0, HKS_SHOW);
|
NULL, NULL, 0, HKS_SHOW, 0);
|
||||||
e++;
|
e++;
|
||||||
x = 0;
|
x = 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user