Karsten Hopp 0774ce
To: vim_dev@googlegroups.com
Karsten Hopp 0774ce
Subject: Patch 7.4.017
Karsten Hopp 0774ce
Fcc: outbox
Karsten Hopp 0774ce
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 0774ce
Mime-Version: 1.0
Karsten Hopp 0774ce
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 0774ce
Content-Transfer-Encoding: 8bit
Karsten Hopp 0774ce
------------
Karsten Hopp 0774ce
Karsten Hopp 0774ce
Patch 7.4.017
Karsten Hopp 0774ce
Problem:    ":help !!" does not find the "!!" tag in the help file. (Ben
Karsten Hopp 0774ce
	    Fritz)
Karsten Hopp 0774ce
Solution:   When reading the start of the tags file do parse lines that are
Karsten Hopp 0774ce
	    not header lines.
Karsten Hopp 0774ce
Files:	    src/tag.c
Karsten Hopp 0774ce
Karsten Hopp 0774ce
Karsten Hopp 0774ce
*** ../vim-7.4.016/src/tag.c	2013-06-15 22:26:26.000000000 +0200
Karsten Hopp 0774ce
--- src/tag.c	2013-09-05 12:03:38.000000000 +0200
Karsten Hopp 0774ce
***************
Karsten Hopp 0774ce
*** 1797,1809 ****
Karsten Hopp 0774ce
  	     */
Karsten Hopp 0774ce
  	    if (state == TS_START)
Karsten Hopp 0774ce
  	    {
Karsten Hopp 0774ce
! 		/* The header ends when the line sorts below "!_TAG_".
Karsten Hopp 0774ce
! 		 * There may be non-header items before the header though,
Karsten Hopp 0774ce
! 		 * e.g. "!" itself. When case is folded lower case letters
Karsten Hopp 0774ce
! 		 * sort before "_". */
Karsten Hopp 0774ce
  		if (STRNCMP(lbuf, "!_TAG_", 6) <= 0
Karsten Hopp 0774ce
  				|| (lbuf[0] == '!' && ASCII_ISLOWER(lbuf[1])))
Karsten Hopp 0774ce
  		{
Karsten Hopp 0774ce
  		    /*
Karsten Hopp 0774ce
  		     * Read header line.
Karsten Hopp 0774ce
  		     */
Karsten Hopp 0774ce
--- 1797,1812 ----
Karsten Hopp 0774ce
  	     */
Karsten Hopp 0774ce
  	    if (state == TS_START)
Karsten Hopp 0774ce
  	    {
Karsten Hopp 0774ce
! 		/* The header ends when the line sorts below "!_TAG_".  When
Karsten Hopp 0774ce
! 		 * case is folded lower case letters sort before "_". */
Karsten Hopp 0774ce
  		if (STRNCMP(lbuf, "!_TAG_", 6) <= 0
Karsten Hopp 0774ce
  				|| (lbuf[0] == '!' && ASCII_ISLOWER(lbuf[1])))
Karsten Hopp 0774ce
  		{
Karsten Hopp 0774ce
+ 		    if (STRNCMP(lbuf, "!_TAG_", 6) != 0)
Karsten Hopp 0774ce
+ 			/* Non-header item before the header, e.g. "!" itself.
Karsten Hopp 0774ce
+ 			 */
Karsten Hopp 0774ce
+ 			goto parse_line;
Karsten Hopp 0774ce
+ 
Karsten Hopp 0774ce
  		    /*
Karsten Hopp 0774ce
  		     * Read header line.
Karsten Hopp 0774ce
  		     */
Karsten Hopp 0774ce
***************
Karsten Hopp 0774ce
*** 1898,1903 ****
Karsten Hopp 0774ce
--- 1901,1907 ----
Karsten Hopp 0774ce
  #endif
Karsten Hopp 0774ce
  	    }
Karsten Hopp 0774ce
  
Karsten Hopp 0774ce
+ parse_line:
Karsten Hopp 0774ce
  	    /*
Karsten Hopp 0774ce
  	     * Figure out where the different strings are in this line.
Karsten Hopp 0774ce
  	     * For "normal" tags: Do a quick check if the tag matches.
Karsten Hopp 0774ce
*** ../vim-7.4.016/src/version.c	2013-08-30 17:29:10.000000000 +0200
Karsten Hopp 0774ce
--- src/version.c	2013-09-05 12:02:01.000000000 +0200
Karsten Hopp 0774ce
***************
Karsten Hopp 0774ce
*** 740,741 ****
Karsten Hopp 0774ce
--- 740,743 ----
Karsten Hopp 0774ce
  {   /* Add new patch number below this line */
Karsten Hopp 0774ce
+ /**/
Karsten Hopp 0774ce
+     17,
Karsten Hopp 0774ce
  /**/
Karsten Hopp 0774ce
Karsten Hopp 0774ce
-- 
Karsten Hopp 0774ce
An error has occurred.  Hit any user to continue.
Karsten Hopp 0774ce
Karsten Hopp 0774ce
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 0774ce
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 0774ce
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 0774ce
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///