diff options
author | Bram Moolenaar <Bram@vim.org> | 2010-12-02 16:01:29 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2010-12-02 16:01:29 +0100 |
commit | 94950a9ee02369c9bb26d81be7c20ced166943ec (patch) | |
tree | 04d0607739f85878ff8e057215afb8e1b13fbe59 /src/ex_docmd.c | |
parent | 4161dccada960ec7bf97e5887287d42eb9139710 (diff) | |
download | vim-94950a9ee02369c9bb26d81be7c20ced166943ec.zip |
updated for version 7.3.072
Problem: Can't complete file names while ignoring case.
Solution: Add 'wildignorecase'.
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r-- | src/ex_docmd.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index 0aac8f85c..3265860f4 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -4524,12 +4524,14 @@ expand_filename(eap, cmdlinep, errormsgp) else /* n == 2 */ { expand_T xpc; + int options = WILD_LIST_NOTFOUND|WILD_ADD_SLASH; ExpandInit(&xpc); xpc.xp_context = EXPAND_FILES; + if (p_wic) + options += WILD_ICASE; p = ExpandOne(&xpc, eap->arg, NULL, - WILD_LIST_NOTFOUND|WILD_ADD_SLASH, - WILD_EXPAND_FREE); + options, WILD_EXPAND_FREE); if (p == NULL) return FAIL; } |