diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-01-31 20:10:50 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-01-31 20:10:50 +0100 |
commit | a259d8d30bc289764925fc42db1dbe774f0bb3f8 (patch) | |
tree | ff0e14025b46941dc7bac65ab1f93420e1b14083 /src/proto/evalfunc.pro | |
parent | 92be6e3f46120bb8e6c8fca0a7868a08df8b3345 (diff) | |
download | vim-git-a259d8d30bc289764925fc42db1dbe774f0bb3f8.tar.gz |
patch 8.2.0185: Vim9 script: cannot use "if has()" to skip linesv8.2.0185
Problem: Vim9 script: cannot use "if has()" to skip lines.
Solution: Evaluate constant expression at runtime.
Diffstat (limited to 'src/proto/evalfunc.pro')
-rw-r--r-- | src/proto/evalfunc.pro | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/proto/evalfunc.pro b/src/proto/evalfunc.pro index 59ff35c69..14a1a56ac 100644 --- a/src/proto/evalfunc.pro +++ b/src/proto/evalfunc.pro @@ -17,6 +17,7 @@ buf_T *get_buf_arg(typval_T *arg); win_T *get_optional_window(typval_T *argvars, int idx); void execute_redir_str(char_u *value, int value_len); void execute_common(typval_T *argvars, typval_T *rettv, int arg_off); +void f_has(typval_T *argvars, typval_T *rettv); void mzscheme_call_vim(char_u *name, typval_T *args, typval_T *rettv); void range_list_materialize(list_T *list); float_T vim_round(float_T f); |