jkunstle / rpms / vim

Forked from rpms/vim 3 years ago
Clone

Blame SOURCES/7.4.017

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