From 4463f296d0744915fa25dbd893821833043f9a25 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 25 Sep 2005 22:20:24 +0000 Subject: updated for version 7.0150 --- src/menu.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/menu.c') 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]); } -- cgit v1.2.1