diff options
author | Shougo Matsushita <Shougo.Matsu@gmail.com> | 2016-10-01 19:54:59 +0900 |
---|---|---|
committer | Shougo Matsushita <Shougo.Matsu@gmail.com> | 2016-10-01 20:07:27 +0900 |
commit | db324879d2956a2527851102183723df63039904 (patch) | |
tree | 68f27a7a557325130508ed2b1f8c277b20d218d6 /runtime/doc | |
parent | de802fd4d22e813713bbd6825bfd75c5287a50b4 (diff) | |
download | rneovim-db324879d2956a2527851102183723df63039904.tar.gz rneovim-db324879d2956a2527851102183723df63039904.tar.bz2 rneovim-db324879d2956a2527851102183723df63039904.zip |
vim-patch:7.4.2205
Problem: 'wildignore' always applies to getcompletion().
Solution: Add an option to use 'wildignore' or not. (Yegappan Lakshmanan)
https://github.com/vim/vim/commit/e9d58a6459687a1228b5aa85bd7b31f8f1e528a8
Diffstat (limited to 'runtime/doc')
-rw-r--r-- | runtime/doc/eval.txt | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index df5713c63d..7deed759b6 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -1897,7 +1897,8 @@ getcmdline() String return the current command-line getcmdpos() Number return cursor position in command-line getcmdtype() String return current command-line type getcmdwintype() String return current command-line window type -getcompletion({pat}, {type}) List list of cmdline completion matches +getcompletion({pat}, {type} [, {filtered}]) + List list of cmdline completion matches getcurpos() List position of the cursor getcwd([{winnr} [, {tabnr}]]) String the current working directory getfontname([{name}]) String name of font being used @@ -3651,7 +3652,7 @@ getcmdwintype() *getcmdwintype()* values are the same as |getcmdtype()|. Returns an empty string when not in the command-line window. -getcompletion({pat}, {type}) *getcompletion()* +getcompletion({pat}, {type} [, {filtered}]) *getcompletion()* Return a list of command-line completion matches. {type} specifies what for. The following completion types are supported: @@ -3691,6 +3692,10 @@ getcompletion({pat}, {type}) *getcompletion()* Otherwise only items matching {pat} are returned. See |wildcards| for the use of special characters in {pat}. + If the optional {filtered} flag is set to 1, then 'wildignore' + is applied to filter the results. Otherwise all the matches + are returned. The 'wildignorecase' option always applies. + If there are no matches, an empty list is returned. An invalid value for {type} produces an error. |