* edit.c (edit_execute_cmd): Enable user menu in mcedit.

This commit is contained in:
Pavel Roskin 2003-07-25 18:52:28 +00:00
parent c0501a8ea4
commit 58572c60da
2 changed files with 5 additions and 7 deletions

View File

@ -1,3 +1,7 @@
2003-07-25 Pavel Roskin <proski@gnu.org>
* edit.c (edit_execute_cmd): Enable user menu in mcedit.
2003-07-20 Pavel Roskin <proski@gnu.org>
* editcmd.c (edit_quit_cmd): Rename to ...

View File

@ -28,7 +28,6 @@
#include "src/cmd.h" /* view_other_cmd() */
#include "src/user.h" /* user_menu_cmd() */
#include "src/main.h" /* edit_one_file */
#include "src/wtools.h" /* query_dialog() */
/*
@ -2566,12 +2565,7 @@ int edit_execute_cmd (WEdit * edit, int command, int char_for_insertion)
edit_goto_matching_bracket (edit);
break;
case CK_User_Menu:
if (edit_one_file) {
message (1, MSG_ERROR, _("User menu available only in mcedit invoked from mc"));
break;
}
else
user_menu (edit);
user_menu (edit);
break;
case CK_Sort:
edit_sort_cmd (edit);