summaryrefslogtreecommitdiffstats
path: root/src/ex_docmd.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2010-12-02 16:01:29 +0100
committerBram Moolenaar <Bram@vim.org>2010-12-02 16:01:29 +0100
commit94950a9ee02369c9bb26d81be7c20ced166943ec (patch)
tree04d0607739f85878ff8e057215afb8e1b13fbe59 /src/ex_docmd.c
parent4161dccada960ec7bf97e5887287d42eb9139710 (diff)
updated for version 7.3.072v7.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.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index 0aac8f85cb..3265860f40 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;
}