1
0
forked from aniani/vim

patch 8.2.3276: Vim9: exists() can only be evaluated at runtime

Problem:    Vim9: exists() can only be evaluated at runtime.
Solution:   Evaluate at compile time for option name literals. (closes #8437)
This commit is contained in:
Bram Moolenaar
2021-08-02 20:06:50 +02:00
parent 35578168be
commit bb7ee7abe1
5 changed files with 34 additions and 6 deletions

View File

@@ -49,7 +49,6 @@ static void f_escape(typval_T *argvars, typval_T *rettv);
static void f_eval(typval_T *argvars, typval_T *rettv);
static void f_eventhandler(typval_T *argvars, typval_T *rettv);
static void f_execute(typval_T *argvars, typval_T *rettv);
static void f_exists(typval_T *argvars, typval_T *rettv);
static void f_expand(typval_T *argvars, typval_T *rettv);
static void f_expandcmd(typval_T *argvars, typval_T *rettv);
static void f_feedkeys(typval_T *argvars, typval_T *rettv);
@@ -3521,7 +3520,7 @@ f_execute(typval_T *argvars, typval_T *rettv)
/*
* "exists()" function
*/
static void
void
f_exists(typval_T *argvars, typval_T *rettv)
{
char_u *p;