]> git.ipfire.org Git - ipfire-3.x.git/blob - vim/patches/vim-7.3.518.patch0
Merge remote-tracking branch 'ms/openvswitch'
[ipfire-3.x.git] / vim / patches / vim-7.3.518.patch0
1 To: vim_dev@googlegroups.com
2 Subject: Patch 7.3.518
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.518
11 Problem: When 'encoding' is a double-byte encoding ":helptags" may not find
12 tags correctly.
13 Solution: Use vim_strbyte() instead of vim_strchr(). (Yasuhiro Matsumoto)
14 Files: src/ex_cmds.c
15
16
17 *** ../vim-7.3.517/src/ex_cmds.c 2012-04-25 17:32:14.000000000 +0200
18 --- src/ex_cmds.c 2012-05-18 16:20:20.000000000 +0200
19 ***************
20 *** 6535,6541 ****
21 p1 = vim_strchr(IObuff, '*'); /* find first '*' */
22 while (p1 != NULL)
23 {
24 ! p2 = vim_strchr(p1 + 1, '*'); /* find second '*' */
25 if (p2 != NULL && p2 > p1 + 1) /* skip "*" and "**" */
26 {
27 for (s = p1 + 1; s < p2; ++s)
28 --- 6535,6544 ----
29 p1 = vim_strchr(IObuff, '*'); /* find first '*' */
30 while (p1 != NULL)
31 {
32 ! /* Use vim_strbyte() instead of vim_strchr() so that when
33 ! * 'encoding' is dbcs it still works, don't find '*' in the
34 ! * second byte. */
35 ! p2 = vim_strbyte(p1 + 1, '*'); /* find second '*' */
36 if (p2 != NULL && p2 > p1 + 1) /* skip "*" and "**" */
37 {
38 for (s = p1 + 1; s < p2; ++s)
39 *** ../vim-7.3.517/src/version.c 2012-05-18 12:49:33.000000000 +0200
40 --- src/version.c 2012-05-18 16:23:50.000000000 +0200
41 ***************
42 *** 716,717 ****
43 --- 716,719 ----
44 { /* Add new patch number below this line */
45 + /**/
46 + 518,
47 /**/
48
49 --
50 If all you have is a hammer, everything looks like a nail.
51 When your hammer is C++, everything begins to look like a thumb.
52 -- Steve Hoflich, comp.lang.c++
53
54 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
55 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
56 \\\ an exciting new programming language -- http://www.Zimbu.org ///
57 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///