mirror of https://github.com/MidnightCommander/mc
(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
|
||||
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);
|
||||
}
|
||||
|
||||
|
@ -426,8 +427,7 @@ edit_dialog_command_execute (WDialog * h, long command)
|
|||
dlg_close (h);
|
||||
break;
|
||||
case CK_Help:
|
||||
edit_help ();
|
||||
/* edit->force |= REDRAW_COMPLETELY; */
|
||||
edit_help (h);
|
||||
break;
|
||||
case CK_Menu:
|
||||
edit_menu_cmd (h);
|
||||
|
|
Loading…
Reference in New Issue