forked from aniani/vim
patch 8.2.2238: Vim9: cannot load a Vim9 script without the +eval feature
Problem: Vim9: cannot load a Vim9 script without the +eval feature. Solution: Support Vim9 script syntax without the +eval feature.
This commit is contained in:
12
src/menu.c
12
src/menu.c
@@ -2310,11 +2310,7 @@ execute_menu(exarg_T *eap, vimmenu_T *menu, int mode_idx)
|
||||
if (idx < 0)
|
||||
{
|
||||
// Use the Insert mode entry when returning to Insert mode.
|
||||
if (restart_edit
|
||||
#ifdef FEAT_EVAL
|
||||
&& !current_sctx.sc_sid
|
||||
#endif
|
||||
)
|
||||
if (restart_edit && !current_sctx.sc_sid)
|
||||
{
|
||||
idx = MENU_INDEX_INSERT;
|
||||
}
|
||||
@@ -2384,11 +2380,7 @@ execute_menu(exarg_T *eap, vimmenu_T *menu, int mode_idx)
|
||||
// When executing a script or function execute the commands right now.
|
||||
// Also for the window toolbar.
|
||||
// Otherwise put them in the typeahead buffer.
|
||||
if (eap == NULL
|
||||
#ifdef FEAT_EVAL
|
||||
|| current_sctx.sc_sid != 0
|
||||
#endif
|
||||
)
|
||||
if (eap == NULL || current_sctx.sc_sid != 0)
|
||||
{
|
||||
save_state_T save_state;
|
||||
|
||||
|
Reference in New Issue
Block a user