diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-08-02 20:06:50 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-08-02 20:06:50 +0200 |
commit | bb7ee7abe1ea1e60b8a5dadd2bed8cdbe4f3e8fb (patch) | |
tree | 6ad2d2081dec45e2669790281a11f7d4690cbaf3 /src/evalfunc.c | |
parent | 35578168becd1e11973bec413f2078a4bf81ba6b (diff) |
patch 8.2.3276: Vim9: exists() can only be evaluated at runtimev8.2.3276
Problem: Vim9: exists() can only be evaluated at runtime.
Solution: Evaluate at compile time for option name literals. (closes #8437)
Diffstat (limited to 'src/evalfunc.c')
-rw-r--r-- | src/evalfunc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c index ff0d33a4c3..6db930ef22 100644 --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -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; |