(edit_help): use help node of editor dialog.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2023-12-09 20:15:02 +03:00
parent 5567eb573d
commit 1152a232fb

View File

@ -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);