diff src/ex_docmd.c @ 2652:b2a7d143abe2 v7.3.072

updated for version 7.3.072 Problem: Can't complete file names while ignoring case. Solution: Add 'wildignorecase'.
author Bram Moolenaar <bram@vim.org>
date Thu, 02 Dec 2010 16:01:29 +0100
parents a2271decbce5
children 35edf814f223
line wrap: on
line diff
--- 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;
 		}