4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
10 Patch 7.2.026 (after 7.2.010)
11 Problem: "K" doesn't use the length of the identifier but uses the rest of
13 Solution: Copy the desired number of characters first.
17 *** ../vim-7.2.025/src/normal.c Thu Oct 2 22:55:17 2008
18 --- src/normal.c Sat Nov 1 13:41:03 2008
22 static void nv_cursorhold __ARGS((cmdarg_T *cap));
25 + static char *e_noident = N_("E349: No identifier under cursor");
28 * Function to be called for a Normal or Visual mode command.
29 * The argument is a cmdarg_T.
32 if (find_type & FIND_STRING)
33 EMSG(_("E348: No string under cursor"));
35 ! EMSG(_("E349: No identifier under cursor"));
40 if (find_type & FIND_STRING)
41 EMSG(_("E348: No string under cursor"));
50 /* An external command will probably use an argument starting
51 * with "-" as an option. To avoid trouble we skip the "-". */
55 /* When a count is given, turn it into a range. Is this
56 * really what we want? */
59 /* An external command will probably use an argument starting
60 * with "-" as an option. To avoid trouble we skip the "-". */
61 ! while (*ptr == '-' && n > 0)
68 + EMSG(_(e_noident)); /* found dashes only */
73 /* When a count is given, turn it into a range. Is this
74 * really what we want? */
78 if (cmdchar == 'K' && !kp_help)
80 /* Escape the argument properly for a shell command */
81 + ptr = vim_strnsave(ptr, n);
82 p = vim_strsave_shellescape(ptr, TRUE);
87 *** ../vim-7.2.025/src/version.c Thu Oct 2 22:55:17 2008
88 --- src/version.c Sat Nov 1 13:50:53 2008
92 { /* Add new patch number below this line */
98 hundred-and-one symptoms of being an internet addict:
99 161. You get up before the sun rises to check your e-mail, and you
100 find yourself in the very same chair long after the sun has set.
102 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
103 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
104 \\\ download, build and distribute -- http://www.A-A-P.org ///
105 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///