]> git.pld-linux.org Git - packages/vim.git/blame - 7.3.331
- new
[packages/vim.git] / 7.3.331
CommitLineData
59ab3540
AM
1To: vim_dev@googlegroups.com
2Subject: Patch 7.3.331
3Fcc: outbox
4From: Bram Moolenaar <Bram@moolenaar.net>
5Mime-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8------------
9
10Patch 7.3.331
11Problem: "vit" selects wrong text when a tag name starts with the same text
12 as an outer tag name. (Ben Fritz)
13Solution: Add "\>" to the pattern to check for word boundary.
14Files: 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--
47The 50-50-90 rule: Anytime you have a 50-50 chance of getting
48something 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.038164 seconds and 4 git commands to generate.