0de6004
To: vim-dev@vim.org
0de6004
Subject: Patch 7.2.083
0de6004
Fcc: outbox
0de6004
From: Bram Moolenaar <Bram@moolenaar.net>
0de6004
Mime-Version: 1.0
0de6004
Content-Type: text/plain; charset=ISO-8859-1
0de6004
Content-Transfer-Encoding: 8bit
0de6004
------------
0de6004
0de6004
Patch 7.2.083
0de6004
Problem:    ":tag" does not return to the right tag entry from the tag stack.
0de6004
Solution:   Don't change the current match when there is no argument.
0de6004
	    (Erik Falor)
0de6004
Files:	    src/tag.c
0de6004
0de6004
0de6004
*** ../vim-7.2.082/src/tag.c	Tue Dec  9 12:12:31 2008
0de6004
--- src/tag.c	Tue Jan 13 17:14:59 2009
0de6004
***************
0de6004
*** 515,521 ****
0de6004
  	     * If a count is supplied to the ":tag <name>" command, then
0de6004
  	     * jump to count'th matching tag.
0de6004
  	     */
0de6004
! 	    if (type == DT_TAG && count > 0)
0de6004
  		cur_match = count - 1;
0de6004
  
0de6004
  	    if (type == DT_SELECT || type == DT_JUMP
0de6004
--- 515,521 ----
0de6004
  	     * If a count is supplied to the ":tag <name>" command, then
0de6004
  	     * jump to count'th matching tag.
0de6004
  	     */
0de6004
! 	    if (type == DT_TAG && *tag != NUL && count > 0)
0de6004
  		cur_match = count - 1;
0de6004
  
0de6004
  	    if (type == DT_SELECT || type == DT_JUMP
0de6004
*** ../vim-7.2.082/src/version.c	Tue Jan 13 16:57:09 2009
0de6004
--- src/version.c	Tue Jan 13 17:16:42 2009
0de6004
***************
0de6004
*** 678,679 ****
0de6004
--- 678,681 ----
0de6004
  {   /* Add new patch number below this line */
0de6004
+ /**/
0de6004
+     83,
0de6004
  /**/
0de6004
0de6004
-- 
0de6004
Engineers will go without food and hygiene for days to solve a problem.
0de6004
(Other times just because they forgot.)
0de6004
				(Scott Adams - The Dilbert principle)
0de6004
0de6004
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
0de6004
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
0de6004
\\\        download, build and distribute -- http://www.A-A-P.org        ///
0de6004
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///