mirror of
https://github.com/MidnightCommander/mc
synced 2025-03-07 08:31:31 +03:00
(edit_help): use help node of editor dialog.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
5567eb573d
commit
1152a232fb
@ -182,9 +182,10 @@ edit_about (void)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
static void
|
static void
|
||||||
edit_help (void)
|
edit_help (const WDialog * h)
|
||||||
{
|
{
|
||||||
ev_help_t event_data = { NULL, "[Internal File Editor]" };
|
ev_help_t event_data = { NULL, h->help_ctx };
|
||||||
|
|
||||||
mc_event_raise (MCEVENT_GROUP_CORE, "help", &event_data);
|
mc_event_raise (MCEVENT_GROUP_CORE, "help", &event_data);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -426,8 +427,7 @@ edit_dialog_command_execute (WDialog * h, long command)
|
|||||||
dlg_close (h);
|
dlg_close (h);
|
||||||
break;
|
break;
|
||||||
case CK_Help:
|
case CK_Help:
|
||||||
edit_help ();
|
edit_help (h);
|
||||||
/* edit->force |= REDRAW_COMPLETELY; */
|
|
||||||
break;
|
break;
|
||||||
case CK_Menu:
|
case CK_Menu:
|
||||||
edit_menu_cmd (h);
|
edit_menu_cmd (h);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user