diff options
author | Shougo Matsushita <Shougo.Matsu@gmail.com> | 2022-05-07 12:48:29 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-05-07 12:48:29 +0100 |
commit | 79d599b8772022af1d657f368c2fc97aa342c0da (patch) | |
tree | ee415de85697c73717db8ca0679481349d097965 /src/evalfunc.c | |
parent | c27747e6ddcbda7d1d3b39867898f746dc4db471 (diff) | |
download | vim-git-79d599b8772022af1d657f368c2fc97aa342c0da.tar.gz |
patch 8.2.4903: cannot get the current cmdline completion type and positionv8.2.4903
Problem: Cannot get the current cmdline completion type and position.
Solution: Add getcmdcompltype() and getcmdscreenpos(). (Shougo Matsushita,
closes #10344)
Diffstat (limited to 'src/evalfunc.c')
-rw-r--r-- | src/evalfunc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c index 55041b945..219751ba1 100644 --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -1850,10 +1850,14 @@ static funcentry_T global_functions[] = ret_dict_any, f_getcharsearch}, {"getcharstr", 0, 1, 0, arg1_bool, ret_string, f_getcharstr}, + {"getcmdcompltype", 0, 0, 0, NULL, + ret_string, f_getcmdcompltype}, {"getcmdline", 0, 0, 0, NULL, ret_string, f_getcmdline}, {"getcmdpos", 0, 0, 0, NULL, ret_number, f_getcmdpos}, + {"getcmdscreenpos", 0, 0, 0, NULL, + ret_number, f_getcmdscreenpos}, {"getcmdtype", 0, 0, 0, NULL, ret_string, f_getcmdtype}, {"getcmdwintype", 0, 0, 0, NULL, |