diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-01-26 22:42:21 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-01-26 22:42:21 +0100 |
commit | 21829c5f2c86cd525c8468121b4fc54c5d75bf6e (patch) | |
tree | 41396772eb831dd5c7d774d3a98016b640d7bda5 /src/evalfunc.c | |
parent | b7e2670b6a1de02c772af5097ba24f2a15b26eec (diff) |
patch 8.2.2415: no way to check for the cmdwin featurev8.2.2415
Problem: No way to check for the cmdwin feature, cmdline_hist is now always
enabled.
Solution: Add has('cmdwin') support. Skip arglist test on Windows
temporarily.
Diffstat (limited to 'src/evalfunc.c')
-rw-r--r-- | src/evalfunc.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c index cc812ce336..b752c51d10 100644 --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -4651,6 +4651,13 @@ f_has(typval_T *argvars, typval_T *rettv) }, {"cmdline_compl", 1}, {"cmdline_hist", 1}, + {"cmdwin", +#ifdef FEAT_CMDWIN + 1 +#else + 0 +#endif + }, {"comments", 1}, {"conceal", #ifdef FEAT_CONCEAL |