diff options
author | Bram Moolenaar <Bram@vim.org> | 2005-09-25 22:20:24 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2005-09-25 22:20:24 +0000 |
commit | 4463f296d0744915fa25dbd893821833043f9a25 (patch) | |
tree | 6fb51a6e33ab971e1a4f90dee47683788fc3d1ce /src/menu.c | |
parent | 1e01546026ce909b5fe56c05867f28e77d1b6eb3 (diff) | |
download | vim-4463f296d0744915fa25dbd893821833043f9a25.zip |
updated for version 7.0150
Diffstat (limited to 'src/menu.c')
-rw-r--r-- | src/menu.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/menu.c b/src/menu.c index c92a812ca..4e220c748 100644 --- a/src/menu.c +++ b/src/menu.c @@ -2109,7 +2109,11 @@ ex_emenu(eap) /* Found the menu, so execute. * Use the Insert mode entry when returning to Insert mode. */ - if (restart_edit && !current_SID) + if (restart_edit +#ifdef FEAT_EVAL + && !current_SID +#endif + ) { mode = (char_u *)"Insert"; idx = MENU_INDEX_INSERT; @@ -2168,10 +2172,12 @@ ex_emenu(eap) { /* When executing a script or function execute the commands right now. * Otherwise put them in the typeahead buffer. */ +#ifdef FEAT_En if (current_SID != 0) exec_normal_cmd(menu->strings[idx], menu->noremap[idx], menu->silent[idx]); else +#endif ins_typebuf(menu->strings[idx], menu->noremap[idx], 0, TRUE, menu->silent[idx]); } |