diff options
author | Bram Moolenaar <Bram@vim.org> | 2013-02-20 17:59:11 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2013-02-20 17:59:11 +0100 |
commit | 8738fc1be888d73fb4fe302cf085c0bcf4f52e91 (patch) | |
tree | 729de834b2f1a341d052d0f3e3db35a08e1c156f /src/eval.c | |
parent | 995a8cd18190c0b922796a8ee865e95bd1dbd916 (diff) | |
download | vim-8738fc1be888d73fb4fe302cf085c0bcf4f52e91.zip |
updated for version 7.3.828
Problem: Mappings are not aware of wildmenu mode.
Solution: Add wildmenumode(). (Christian Brabandt)
Diffstat (limited to 'src/eval.c')
-rw-r--r-- | src/eval.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/eval.c b/src/eval.c index bc41805e9..e1f29c40f 100644 --- a/src/eval.c +++ b/src/eval.c @@ -751,6 +751,7 @@ static void f_undotree __ARGS((typval_T *argvars, typval_T *rettv)); static void f_values __ARGS((typval_T *argvars, typval_T *rettv)); static void f_virtcol __ARGS((typval_T *argvars, typval_T *rettv)); static void f_visualmode __ARGS((typval_T *argvars, typval_T *rettv)); +static void f_wildmenumode __ARGS((typval_T *argvars, typval_T *rettv)); static void f_winbufnr __ARGS((typval_T *argvars, typval_T *rettv)); static void f_wincol __ARGS((typval_T *argvars, typval_T *rettv)); static void f_winheight __ARGS((typval_T *argvars, typval_T *rettv)); @@ -8121,6 +8122,7 @@ static struct fst {"values", 1, 1, f_values}, {"virtcol", 1, 1, f_virtcol}, {"visualmode", 0, 1, f_visualmode}, + {"wildmenumode", 0, 0, f_wildmenumode}, {"winbufnr", 1, 1, f_winbufnr}, {"wincol", 0, 0, f_wincol}, {"winheight", 1, 1, f_winheight}, @@ -18577,6 +18579,20 @@ f_visualmode(argvars, rettv) } /* + * "wildmenumode()" function + */ + static void +f_wildmenumode(argvars, rettv) + typval_T *argvars UNUSED; + typval_T *rettv UNUSED; +{ +#ifdef FEAT_WILDMENU + if (wild_menu_showing) + rettv->vval.v_number = 1; +#endif +} + +/* * "winbufnr(nr)" function */ static void |