Karsten Hopp 3aea9f
To: vim_dev@googlegroups.com
Karsten Hopp 3aea9f
Subject: Patch 7.3.1202
Karsten Hopp 3aea9f
Fcc: outbox
Karsten Hopp 3aea9f
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 3aea9f
Mime-Version: 1.0
Karsten Hopp 3aea9f
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 3aea9f
Content-Transfer-Encoding: 8bit
Karsten Hopp 3aea9f
------------
Karsten Hopp 3aea9f
Karsten Hopp 3aea9f
Patch 7.3.1202 (after 7.3.660)
Karsten Hopp 3aea9f
Problem:    Tags are not found in case-folded tags file. (Darren cole, Issue
Karsten Hopp 3aea9f
	    90)
Karsten Hopp 3aea9f
Solution:   Take into account that when case folding was used for the tags
Karsten Hopp 3aea9f
	    file "!rm" sorts before the "!_TAG" header lines.
Karsten Hopp 3aea9f
Files:	    src/tag.c
Karsten Hopp 3aea9f
Karsten Hopp 3aea9f
Karsten Hopp 3aea9f
*** ../vim-7.3.1201/src/tag.c	2013-06-08 18:19:40.000000000 +0200
Karsten Hopp 3aea9f
--- src/tag.c	2013-06-15 22:26:26.000000000 +0200
Karsten Hopp 3aea9f
***************
Karsten Hopp 3aea9f
*** 1797,1803 ****
Karsten Hopp 3aea9f
  	     */
Karsten Hopp 3aea9f
  	    if (state == TS_START)
Karsten Hopp 3aea9f
  	    {
Karsten Hopp 3aea9f
! 		if (STRNCMP(lbuf, "!_TAG_", 6) == 0)
Karsten Hopp 3aea9f
  		{
Karsten Hopp 3aea9f
  		    /*
Karsten Hopp 3aea9f
  		     * Read header line.
Karsten Hopp 3aea9f
--- 1797,1808 ----
Karsten Hopp 3aea9f
  	     */
Karsten Hopp 3aea9f
  	    if (state == TS_START)
Karsten Hopp 3aea9f
  	    {
Karsten Hopp 3aea9f
! 		/* The header ends when the line sorts below "!_TAG_".
Karsten Hopp 3aea9f
! 		 * There may be non-header items before the header though,
Karsten Hopp 3aea9f
! 		 * e.g. "!" itself. When case is folded lower case letters
Karsten Hopp 3aea9f
! 		 * sort before "_". */
Karsten Hopp 3aea9f
! 		if (STRNCMP(lbuf, "!_TAG_", 6) <= 0
Karsten Hopp 3aea9f
! 				|| (lbuf[0] == '!' && ASCII_ISLOWER(lbuf[1])))
Karsten Hopp 3aea9f
  		{
Karsten Hopp 3aea9f
  		    /*
Karsten Hopp 3aea9f
  		     * Read header line.
Karsten Hopp 3aea9f
*** ../vim-7.3.1201/src/version.c	2013-06-15 21:54:11.000000000 +0200
Karsten Hopp 3aea9f
--- src/version.c	2013-06-15 22:24:58.000000000 +0200
Karsten Hopp 3aea9f
***************
Karsten Hopp 3aea9f
*** 730,731 ****
Karsten Hopp 3aea9f
--- 730,733 ----
Karsten Hopp 3aea9f
  {   /* Add new patch number below this line */
Karsten Hopp 3aea9f
+ /**/
Karsten Hopp 3aea9f
+     1202,
Karsten Hopp 3aea9f
  /**/
Karsten Hopp 3aea9f
Karsten Hopp 3aea9f
-- 
Karsten Hopp 3aea9f
hundred-and-one symptoms of being an internet addict:
Karsten Hopp 3aea9f
220. Your wife asks for sex and you tell her where to find you on IRC.
Karsten Hopp 3aea9f
Karsten Hopp 3aea9f
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 3aea9f
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 3aea9f
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 3aea9f
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///