Karsten Hopp c01256
To: vim_dev@googlegroups.com
Karsten Hopp c01256
Subject: Patch 7.4.746
Karsten Hopp c01256
Fcc: outbox
Karsten Hopp c01256
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp c01256
Mime-Version: 1.0
Karsten Hopp c01256
Content-Type: text/plain; charset=UTF-8
Karsten Hopp c01256
Content-Transfer-Encoding: 8bit
Karsten Hopp c01256
------------
Karsten Hopp c01256
Karsten Hopp c01256
Patch 7.4.746
Karsten Hopp c01256
Problem:    ":[count]tag" is not always working. (cs86661)
Karsten Hopp c01256
Solution:   Set cur_match a bit later. (Hirohito Higashi)
Karsten Hopp c01256
Files:      src/tag.c,
Karsten Hopp c01256
Karsten Hopp c01256
Karsten Hopp c01256
*** ../vim-7.4.745/src/tag.c	2014-04-02 17:18:59.047728202 +0200
Karsten Hopp c01256
--- src/tag.c	2015-06-19 16:36:56.205600552 +0200
Karsten Hopp c01256
***************
Karsten Hopp c01256
*** 508,521 ****
Karsten Hopp c01256
  		tagmatchname = vim_strsave(name);
Karsten Hopp c01256
  	    }
Karsten Hopp c01256
  
Karsten Hopp c01256
! 	    /*
Karsten Hopp c01256
! 	     * If a count is supplied to the ":tag <name>" command, then
Karsten Hopp c01256
! 	     * jump to count'th matching tag.
Karsten Hopp c01256
! 	     */
Karsten Hopp c01256
! 	    if (type == DT_TAG && *tag != NUL && count > 0)
Karsten Hopp c01256
! 		cur_match = count - 1;
Karsten Hopp c01256
! 
Karsten Hopp c01256
! 	    if (type == DT_SELECT || type == DT_JUMP
Karsten Hopp c01256
  #if defined(FEAT_QUICKFIX)
Karsten Hopp c01256
  		|| type == DT_LTAG
Karsten Hopp c01256
  #endif
Karsten Hopp c01256
--- 508,514 ----
Karsten Hopp c01256
  		tagmatchname = vim_strsave(name);
Karsten Hopp c01256
  	    }
Karsten Hopp c01256
  
Karsten Hopp c01256
! 	    if (type == DT_TAG || type == DT_SELECT || type == DT_JUMP
Karsten Hopp c01256
  #if defined(FEAT_QUICKFIX)
Karsten Hopp c01256
  		|| type == DT_LTAG
Karsten Hopp c01256
  #endif
Karsten Hopp c01256
***************
Karsten Hopp c01256
*** 594,600 ****
Karsten Hopp c01256
  	    }
Karsten Hopp c01256
  	    else
Karsten Hopp c01256
  #endif
Karsten Hopp c01256
! 	    if (type == DT_SELECT || (type == DT_JUMP && num_matches > 1))
Karsten Hopp c01256
  	    {
Karsten Hopp c01256
  		/*
Karsten Hopp c01256
  		 * List all the matching tags.
Karsten Hopp c01256
--- 587,599 ----
Karsten Hopp c01256
  	    }
Karsten Hopp c01256
  	    else
Karsten Hopp c01256
  #endif
Karsten Hopp c01256
! 	    if (type == DT_TAG)
Karsten Hopp c01256
! 		/*
Karsten Hopp c01256
! 		 * If a count is supplied to the ":tag <name>" command, then
Karsten Hopp c01256
! 		 * jump to count'th matching tag.
Karsten Hopp c01256
! 		 */
Karsten Hopp c01256
! 		cur_match = count > 0 ? count - 1 : 0;
Karsten Hopp c01256
! 	    else if (type == DT_SELECT || (type == DT_JUMP && num_matches > 1))
Karsten Hopp c01256
  	    {
Karsten Hopp c01256
  		/*
Karsten Hopp c01256
  		 * List all the matching tags.
Karsten Hopp c01256
***************
Karsten Hopp c01256
*** 990,996 ****
Karsten Hopp c01256
  
Karsten Hopp c01256
  
Karsten Hopp c01256
  	    ic = (matches[cur_match][0] & MT_IC_OFF);
Karsten Hopp c01256
! 	    if (type != DT_SELECT && type != DT_JUMP
Karsten Hopp c01256
  #ifdef FEAT_CSCOPE
Karsten Hopp c01256
  		&& type != DT_CSCOPE
Karsten Hopp c01256
  #endif
Karsten Hopp c01256
--- 989,995 ----
Karsten Hopp c01256
  
Karsten Hopp c01256
  
Karsten Hopp c01256
  	    ic = (matches[cur_match][0] & MT_IC_OFF);
Karsten Hopp c01256
! 	    if (type != DT_TAG && type != DT_SELECT && type != DT_JUMP
Karsten Hopp c01256
  #ifdef FEAT_CSCOPE
Karsten Hopp c01256
  		&& type != DT_CSCOPE
Karsten Hopp c01256
  #endif
Karsten Hopp c01256
*** ../vim-7.4.745/src/version.c	2015-06-19 16:32:52.328116933 +0200
Karsten Hopp c01256
--- src/version.c	2015-06-19 16:36:49.121673667 +0200
Karsten Hopp c01256
***************
Karsten Hopp c01256
*** 743,744 ****
Karsten Hopp c01256
--- 743,746 ----
Karsten Hopp c01256
  {   /* Add new patch number below this line */
Karsten Hopp c01256
+ /**/
Karsten Hopp c01256
+     746,
Karsten Hopp c01256
  /**/
Karsten Hopp c01256
Karsten Hopp c01256
-- 
Karsten Hopp c01256
hundred-and-one symptoms of being an internet addict:
Karsten Hopp c01256
119. You are reading a book and look for the scroll bar to get to
Karsten Hopp c01256
     the next page.
Karsten Hopp c01256
Karsten Hopp c01256
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp c01256
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp c01256
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp c01256
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///