Karsten Hopp 5ebe4a
To: vim-dev@vim.org
Karsten Hopp 5ebe4a
Subject: Patch 7.3.001
Karsten Hopp 5ebe4a
Fcc: outbox
Karsten Hopp 5ebe4a
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 5ebe4a
Mime-Version: 1.0
Karsten Hopp 5ebe4a
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 5ebe4a
Content-Transfer-Encoding: 8bit
Karsten Hopp 5ebe4a
------------
Karsten Hopp 5ebe4a
Karsten Hopp 5ebe4a
Patch 7.3.001
Karsten Hopp 5ebe4a
Problem:    When editing "src/main.c" and 'path' set to "./proto",
Karsten Hopp 5ebe4a
	    ":find e
Karsten Hopp 5ebe4a
Solution:   Check for path separator when comparing names. (Nazri Ramliy)
Karsten Hopp 5ebe4a
Files:	    src/misc1.c
Karsten Hopp 5ebe4a
Karsten Hopp 5ebe4a
Karsten Hopp 5ebe4a
*** ../vim-7.3.000/src/misc1.c	2010-08-15 21:57:27.000000000 +0200
Karsten Hopp 5ebe4a
--- src/misc1.c	2010-08-16 20:43:25.000000000 +0200
Karsten Hopp 5ebe4a
***************
Karsten Hopp 5ebe4a
*** 9317,9323 ****
Karsten Hopp 5ebe4a
  	    continue;  /* it's different when it's shorter */
Karsten Hopp 5ebe4a
  
Karsten Hopp 5ebe4a
  	rival = other_paths[j] + other_path_len - candidate_len;
Karsten Hopp 5ebe4a
! 	if (fnamecmp(maybe_unique, rival) == 0)
Karsten Hopp 5ebe4a
  	    return FALSE;  /* match */
Karsten Hopp 5ebe4a
      }
Karsten Hopp 5ebe4a
  
Karsten Hopp 5ebe4a
--- 9317,9324 ----
Karsten Hopp 5ebe4a
  	    continue;  /* it's different when it's shorter */
Karsten Hopp 5ebe4a
  
Karsten Hopp 5ebe4a
  	rival = other_paths[j] + other_path_len - candidate_len;
Karsten Hopp 5ebe4a
! 	if (fnamecmp(maybe_unique, rival) == 0
Karsten Hopp 5ebe4a
! 		&& (rival == other_paths[j] || vim_ispathsep(*(rival - 1))))
Karsten Hopp 5ebe4a
  	    return FALSE;  /* match */
Karsten Hopp 5ebe4a
      }
Karsten Hopp 5ebe4a
  
Karsten Hopp 5ebe4a
*** ../vim-7.3.000/src/version.c	2010-08-15 21:57:25.000000000 +0200
Karsten Hopp 5ebe4a
--- src/version.c	2010-08-16 20:53:09.000000000 +0200
Karsten Hopp 5ebe4a
***************
Karsten Hopp 5ebe4a
*** 716,717 ****
Karsten Hopp 5ebe4a
--- 716,719 ----
Karsten Hopp 5ebe4a
  {   /* Add new patch number below this line */
Karsten Hopp 5ebe4a
+ /**/
Karsten Hopp 5ebe4a
+     1,
Karsten Hopp 5ebe4a
  /**/
Karsten Hopp 5ebe4a
Karsten Hopp 5ebe4a
Karsten Hopp 5ebe4a
-- 
Karsten Hopp 5ebe4a
From "know your smileys":
Karsten Hopp 5ebe4a
 (:-#	Said something he shouldn't have
Karsten Hopp 5ebe4a
Karsten Hopp 5ebe4a
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 5ebe4a
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 5ebe4a
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp 5ebe4a
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///