* 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> 2003-07-20 Pavel Roskin <proski@gnu.org>
* editcmd.c (edit_quit_cmd): Rename to ... * editcmd.c (edit_quit_cmd): Rename to ...

View File

@ -28,7 +28,6 @@
#include "src/cmd.h" /* view_other_cmd() */ #include "src/cmd.h" /* view_other_cmd() */
#include "src/user.h" /* user_menu_cmd() */ #include "src/user.h" /* user_menu_cmd() */
#include "src/main.h" /* edit_one_file */
#include "src/wtools.h" /* query_dialog() */ #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); edit_goto_matching_bracket (edit);
break; break;
case CK_User_Menu: case CK_User_Menu:
if (edit_one_file) { user_menu (edit);
message (1, MSG_ERROR, _("User menu available only in mcedit invoked from mc"));
break;
}
else
user_menu (edit);
break; break;
case CK_Sort: case CK_Sort:
edit_sort_cmd (edit); edit_sort_cmd (edit);