]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - vim/patches/vim-7.3.241.patch0
libpng: Update to 1.6.10.
[people/ms/ipfire-3.x.git] / vim / patches / vim-7.3.241.patch0
1 To: vim_dev@googlegroups.com
2 Subject: Patch 7.3.241
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.241
11 Problem: Using CTRL-R CTRL-W on the command line may insert only part of
12 the word.
13 Solution: Use the cursor position instead of assuming it is at the end of
14 the command. (Tyru)
15 Files: src/ex_getln.c
16
17
18 *** ../vim-7.3.240/src/ex_getln.c 2011-07-07 15:04:38.000000000 +0200
19 --- src/ex_getln.c 2011-07-07 16:38:50.000000000 +0200
20 ***************
21 *** 3046,3052 ****
22 int len;
23
24 /* Locate start of last word in the cmd buffer. */
25 ! for (w = ccline.cmdbuff + ccline.cmdlen; w > ccline.cmdbuff; )
26 {
27 #ifdef FEAT_MBYTE
28 if (has_mbyte)
29 --- 3046,3052 ----
30 int len;
31
32 /* Locate start of last word in the cmd buffer. */
33 ! for (w = ccline.cmdbuff + ccline.cmdpos; w > ccline.cmdbuff; )
34 {
35 #ifdef FEAT_MBYTE
36 if (has_mbyte)
37 ***************
38 *** 3064,3070 ****
39 --w;
40 }
41 }
42 ! len = (int)((ccline.cmdbuff + ccline.cmdlen) - w);
43 if (p_ic ? STRNICMP(w, arg, len) == 0 : STRNCMP(w, arg, len) == 0)
44 p += len;
45 }
46 --- 3064,3070 ----
47 --w;
48 }
49 }
50 ! len = (int)((ccline.cmdbuff + ccline.cmdpos) - w);
51 if (p_ic ? STRNICMP(w, arg, len) == 0 : STRNCMP(w, arg, len) == 0)
52 p += len;
53 }
54 *** ../vim-7.3.240/src/version.c 2011-07-07 16:20:45.000000000 +0200
55 --- src/version.c 2011-07-07 16:41:29.000000000 +0200
56 ***************
57 *** 711,712 ****
58 --- 711,714 ----
59 { /* Add new patch number below this line */
60 + /**/
61 + 241,
62 /**/
63
64 --
65 hundred-and-one symptoms of being an internet addict:
66 258. When you want to see your girlfriend, you surf to her homepage.
67
68 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
69 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
70 \\\ an exciting new programming language -- http://www.Zimbu.org ///
71 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///