diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2016-05-10 01:40:32 -0400 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2016-05-10 01:40:32 -0400 |
commit | 71ac92efc743b3580150fb72e1c90b4c21a35916 (patch) | |
tree | 0f1d3a872d4110685ec1d9fdb635267f9e47de4f /src/nvim/eval.c | |
parent | a2b888d3830de97eb093a29c930851ceacbd454a (diff) | |
parent | 2b238814d7c72783db2d541ef642ffd481eb0745 (diff) | |
download | rneovim-71ac92efc743b3580150fb72e1c90b4c21a35916.tar.gz rneovim-71ac92efc743b3580150fb72e1c90b4c21a35916.tar.bz2 rneovim-71ac92efc743b3580150fb72e1c90b4c21a35916.zip |
Merge pull request #4720 from jbradaric/vim-7.4.1042
vim-patch:7.4.1042
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r-- | src/nvim/eval.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 9e23753833..7e1ebaf7d4 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -6949,6 +6949,7 @@ static struct fst { { "winrestview", 1, 1, f_winrestview }, { "winsaveview", 0, 0, f_winsaveview }, { "winwidth", 1, 1, f_winwidth }, + { "wordcount", 0, 0, f_wordcount }, { "writefile", 2, 3, f_writefile }, { "xor", 2, 2, f_xor }, }; @@ -16921,6 +16922,13 @@ static void f_winwidth(typval_T *argvars, typval_T *rettv) rettv->vval.v_number = wp->w_width; } +/// "wordcount()" function +static void f_wordcount(typval_T *argvars, typval_T *rettv) +{ + rettv_dict_alloc(rettv); + cursor_pos_info(rettv->vval.v_dict); +} + /// "writefile()" function static void f_writefile(typval_T *argvars, typval_T *rettv) { |