]> git.pld-linux.org Git - packages/vim.git/blob - 7.3.331
- new
[packages/vim.git] / 7.3.331
1 To: vim_dev@googlegroups.com
2 Subject: Patch 7.3.331
3 Fcc: outbox
4 From: Bram Moolenaar <Bram@moolenaar.net>
5 Mime-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8 ------------
9
10 Patch 7.3.331
11 Problem:    "vit" selects wrong text when a tag name starts with the same text
12             as an outer tag name. (Ben Fritz)
13 Solution:   Add "\>" to the pattern to check for word boundary.
14 Files:      src/search.c
15
16
17 *** ../vim-7.3.330/src/search.c 2011-07-15 13:21:24.000000000 +0200
18 --- src/search.c        2011-10-04 16:54:08.000000000 +0200
19 ***************
20 *** 3927,3933 ****
21         curwin->w_cursor = old_pos;
22         goto theend;
23       }
24 !     sprintf((char *)spat, "<%.*s\\%%(\\_[^>]\\{-}[^/]>\\|>\\)\\c", len, p);
25       sprintf((char *)epat, "</%.*s>\\c", len, p);
26   
27       r = do_searchpair(spat, (char_u *)"", epat, FORWARD, (char_u *)"",
28 --- 3927,3933 ----
29         curwin->w_cursor = old_pos;
30         goto theend;
31       }
32 !     sprintf((char *)spat, "<%.*s\\>\\%%(\\_[^>]\\{-}[^/]>\\|>\\)\\c", len, p);
33       sprintf((char *)epat, "</%.*s>\\c", len, p);
34   
35       r = do_searchpair(spat, (char_u *)"", epat, FORWARD, (char_u *)"",
36 *** ../vim-7.3.330/src/version.c        2011-10-04 16:43:49.000000000 +0200
37 --- src/version.c       2011-10-04 16:59:47.000000000 +0200
38 ***************
39 *** 711,712 ****
40 --- 711,714 ----
41   {   /* Add new patch number below this line */
42 + /**/
43 +     331,
44   /**/
45
46 -- 
47 The 50-50-90 rule: Anytime you have a 50-50 chance of getting
48 something right, there's a 90% probability you'll get it wrong.
49
50  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
51 ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
52 \\\  an exciting new programming language -- http://www.Zimbu.org        ///
53  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
This page took 0.031153 seconds and 3 git commands to generate.