jkunstle / rpms / vim

Forked from rpms/vim 3 years ago
Clone

Blame SOURCES/7.4.017

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