1 To: vim_dev@googlegroups.com
4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: Using CTRL-R CTRL-W on the command line may insert only part of
13 Solution: Use the cursor position instead of assuming it is at the end of
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
24 /* Locate start of last word in the cmd buffer. */
25 ! for (w = ccline.cmdbuff + ccline.cmdlen; w > ccline.cmdbuff; )
32 /* Locate start of last word in the cmd buffer. */
33 ! for (w = ccline.cmdbuff + ccline.cmdpos; w > ccline.cmdbuff; )
42 ! len = (int)((ccline.cmdbuff + ccline.cmdlen) - w);
43 if (p_ic ? STRNICMP(w, arg, len) == 0 : STRNCMP(w, arg, len) == 0)
50 ! len = (int)((ccline.cmdbuff + ccline.cmdpos) - w);
51 if (p_ic ? STRNICMP(w, arg, len) == 0 : STRNCMP(w, arg, len) == 0)
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
59 { /* Add new patch number below this line */
65 hundred-and-one symptoms of being an internet addict:
66 258. When you want to see your girlfriend, you surf to her homepage.
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 ///