Karsten Hopp 8ccb22
To: vim_dev@googlegroups.com
Karsten Hopp 8ccb22
Subject: Patch 7.3.420
Karsten Hopp 8ccb22
Fcc: outbox
Karsten Hopp 8ccb22
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 8ccb22
Mime-Version: 1.0
Karsten Hopp 8ccb22
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 8ccb22
Content-Transfer-Encoding: 8bit
Karsten Hopp 8ccb22
------------
Karsten Hopp 8ccb22
Karsten Hopp 8ccb22
Patch 7.3.420
Karsten Hopp 8ccb22
Problem:    "it" and "at" don't work properly with a dash in the tag name.
Karsten Hopp 8ccb22
Solution:   Require a space to match the tag name. (Christian Brabandt)
Karsten Hopp 8ccb22
Files:	    src/search.c
Karsten Hopp 8ccb22
Karsten Hopp 8ccb22
Karsten Hopp 8ccb22
*** ../vim-7.3.419/src/search.c	2012-01-10 22:26:12.000000000 +0100
Karsten Hopp 8ccb22
--- src/search.c	2012-01-26 20:51:43.000000000 +0100
Karsten Hopp 8ccb22
***************
Karsten Hopp 8ccb22
*** 3918,3924 ****
Karsten Hopp 8ccb22
  	curwin->w_cursor = old_pos;
Karsten Hopp 8ccb22
  	goto theend;
Karsten Hopp 8ccb22
      }
Karsten Hopp 8ccb22
!     spat = alloc(len + 29);
Karsten Hopp 8ccb22
      epat = alloc(len + 9);
Karsten Hopp 8ccb22
      if (spat == NULL || epat == NULL)
Karsten Hopp 8ccb22
      {
Karsten Hopp 8ccb22
--- 3918,3924 ----
Karsten Hopp 8ccb22
  	curwin->w_cursor = old_pos;
Karsten Hopp 8ccb22
  	goto theend;
Karsten Hopp 8ccb22
      }
Karsten Hopp 8ccb22
!     spat = alloc(len + 31);
Karsten Hopp 8ccb22
      epat = alloc(len + 9);
Karsten Hopp 8ccb22
      if (spat == NULL || epat == NULL)
Karsten Hopp 8ccb22
      {
Karsten Hopp 8ccb22
***************
Karsten Hopp 8ccb22
*** 3927,3933 ****
Karsten Hopp 8ccb22
  	curwin->w_cursor = old_pos;
Karsten Hopp 8ccb22
  	goto theend;
Karsten Hopp 8ccb22
      }
Karsten Hopp 8ccb22
!     sprintf((char *)spat, "<%.*s\\>\\%%(\\_[^>]\\{-}[^/]>\\|>\\)\\c", len, p);
Karsten Hopp 8ccb22
      sprintf((char *)epat, "</%.*s>\\c", len, p);
Karsten Hopp 8ccb22
  
Karsten Hopp 8ccb22
      r = do_searchpair(spat, (char_u *)"", epat, FORWARD, (char_u *)"",
Karsten Hopp 8ccb22
--- 3927,3933 ----
Karsten Hopp 8ccb22
  	curwin->w_cursor = old_pos;
Karsten Hopp 8ccb22
  	goto theend;
Karsten Hopp 8ccb22
      }
Karsten Hopp 8ccb22
!     sprintf((char *)spat, "<%.*s\\>\\%%(\\s\\_[^>]\\{-}[^/]>\\|>\\)\\c", len, p);
Karsten Hopp 8ccb22
      sprintf((char *)epat, "</%.*s>\\c", len, p);
Karsten Hopp 8ccb22
  
Karsten Hopp 8ccb22
      r = do_searchpair(spat, (char_u *)"", epat, FORWARD, (char_u *)"",
Karsten Hopp 8ccb22
*** ../vim-7.3.419/src/version.c	2012-01-26 20:41:22.000000000 +0100
Karsten Hopp 8ccb22
--- src/version.c	2012-01-26 20:51:16.000000000 +0100
Karsten Hopp 8ccb22
***************
Karsten Hopp 8ccb22
*** 716,717 ****
Karsten Hopp 8ccb22
--- 716,719 ----
Karsten Hopp 8ccb22
  {   /* Add new patch number below this line */
Karsten Hopp 8ccb22
+ /**/
Karsten Hopp 8ccb22
+     420,
Karsten Hopp 8ccb22
  /**/
Karsten Hopp 8ccb22
Karsten Hopp 8ccb22
-- 
Karsten Hopp 8ccb22
All good vision statements are created by groups of people with bloated
Karsten Hopp 8ccb22
bladders who would rather be doing anything else.
Karsten Hopp 8ccb22
				(Scott Adams - The Dilbert principle)
Karsten Hopp 8ccb22
Karsten Hopp 8ccb22
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 8ccb22
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 8ccb22
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 8ccb22
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///