Karsten Hopp 4e2007
To: vim_dev@googlegroups.com
Karsten Hopp 4e2007
Subject: Patch 7.3.515
Karsten Hopp 4e2007
Fcc: outbox
Karsten Hopp 4e2007
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 4e2007
Mime-Version: 1.0
Karsten Hopp 4e2007
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 4e2007
Content-Transfer-Encoding: 8bit
Karsten Hopp 4e2007
------------
Karsten Hopp 4e2007
Karsten Hopp 4e2007
Patch 7.3.515
Karsten Hopp 4e2007
Problem:    'wildignorecase' only applies to the last part of the path.
Karsten Hopp 4e2007
Solution:   Also ignore case for letters earlier in the path.
Karsten Hopp 4e2007
Files:	    src/misc1.c
Karsten Hopp 4e2007
Karsten Hopp 4e2007
Karsten Hopp 4e2007
*** ../vim-7.3.514/src/misc1.c	2012-04-09 20:42:20.000000000 +0200
Karsten Hopp 4e2007
--- src/misc1.c	2012-04-30 21:00:18.000000000 +0200
Karsten Hopp 4e2007
***************
Karsten Hopp 4e2007
*** 9461,9466 ****
Karsten Hopp 4e2007
--- 9461,9467 ----
Karsten Hopp 4e2007
  
Karsten Hopp 4e2007
      /*
Karsten Hopp 4e2007
       * Find the first part in the path name that contains a wildcard.
Karsten Hopp 4e2007
+      * When EW_ICASE is set every letter is considered to be a wildcard.
Karsten Hopp 4e2007
       * Copy it into "buf", including the preceding characters.
Karsten Hopp 4e2007
       */
Karsten Hopp 4e2007
      p = buf;
Karsten Hopp 4e2007
***************
Karsten Hopp 4e2007
*** 9480,9486 ****
Karsten Hopp 4e2007
  	    s = p + 1;
Karsten Hopp 4e2007
  	}
Karsten Hopp 4e2007
  	else if (path_end >= path + wildoff
Karsten Hopp 4e2007
! 			 && vim_strchr((char_u *)"*?[{~$", *path_end) != NULL)
Karsten Hopp 4e2007
  	    e = p;
Karsten Hopp 4e2007
  #ifdef FEAT_MBYTE
Karsten Hopp 4e2007
  	if (has_mbyte)
Karsten Hopp 4e2007
--- 9481,9492 ----
Karsten Hopp 4e2007
  	    s = p + 1;
Karsten Hopp 4e2007
  	}
Karsten Hopp 4e2007
  	else if (path_end >= path + wildoff
Karsten Hopp 4e2007
! 			 && (vim_strchr((char_u *)"*?[{~$", *path_end) != NULL
Karsten Hopp 4e2007
! #ifndef CASE_INSENSITIVE_FILENAME
Karsten Hopp 4e2007
! 			     || ((flags & EW_ICASE)
Karsten Hopp 4e2007
! 					       && isalpha(PTR2CHAR(path_end)))
Karsten Hopp 4e2007
! #endif
Karsten Hopp 4e2007
! 			     ))
Karsten Hopp 4e2007
  	    e = p;
Karsten Hopp 4e2007
  #ifdef FEAT_MBYTE
Karsten Hopp 4e2007
  	if (has_mbyte)
Karsten Hopp 4e2007
*** ../vim-7.3.514/src/version.c	2012-04-30 18:48:38.000000000 +0200
Karsten Hopp 4e2007
--- src/version.c	2012-04-30 21:05:10.000000000 +0200
Karsten Hopp 4e2007
***************
Karsten Hopp 4e2007
*** 716,717 ****
Karsten Hopp 4e2007
--- 716,719 ----
Karsten Hopp 4e2007
  {   /* Add new patch number below this line */
Karsten Hopp 4e2007
+ /**/
Karsten Hopp 4e2007
+     515,
Karsten Hopp 4e2007
  /**/
Karsten Hopp 4e2007
Karsten Hopp 4e2007
-- 
Karsten Hopp 4e2007
If an elephant is left tied to a parking meter, the parking fee has to be paid
Karsten Hopp 4e2007
just as it would for a vehicle.
Karsten Hopp 4e2007
		[real standing law in Florida, United States of America]
Karsten Hopp 4e2007
Karsten Hopp 4e2007
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 4e2007
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 4e2007
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 4e2007
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///