mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.2.2683: build failure without the +eval feature
Problem: Build failure without the +eval feature. Solution: Add #ifdef.
This commit is contained in:
@@ -750,6 +750,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
2683,
|
||||
/**/
|
||||
2682,
|
||||
/**/
|
||||
|
@@ -31,6 +31,7 @@ in_vim9script(void)
|
||||
|| (cmdmod.cmod_flags & CMOD_VIM9CMD);
|
||||
}
|
||||
|
||||
#if defined(FEAT_EVAL) || defined(PROTO)
|
||||
/*
|
||||
* Return TRUE if the current script is Vim9 script.
|
||||
* This also returns TRUE in a legacy function in a Vim9 script.
|
||||
@@ -42,6 +43,7 @@ current_script_is_vim9(void)
|
||||
&& SCRIPT_ITEM(current_sctx.sc_sid)->sn_version
|
||||
== SCRIPT_VERSION_VIM9;
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* ":vim9script".
|
||||
|
Reference in New Issue
Block a user