4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: Problem with CursorHoldI when using "r" in Visual mode (Max
13 Solution: Ignore CursorHold(I) when getting a second character for a Normal
14 mode command. Also abort the "r" command in Visual when a special
19 *** ../vim-7.1.056/src/normal.c Tue Jul 10 14:02:51 2007
20 --- src/normal.c Sun Aug 5 21:57:43 2007
26 ++allow_keys; /* no mapping for nchar, but allow key codes */
28 + /* Don't generate a CursorHold event here, most commands can't handle
29 + * it, e.g., nv_replace(), nv_csearch(). */
30 + did_cursorhold = TRUE;
32 if (ca.cmdchar == 'g')
41 + /* Abort if the character is a special key. */
42 + if (IS_SPECIAL(cap->nchar))
44 + clearopbeep(cap->oap);
57 ! * Check for a special key or not enough characters to replace.
59 ptr = ml_get_cursor();
60 ! if (IS_SPECIAL(cap->nchar) || STRLEN(ptr) < (unsigned)cap->count1
62 || (has_mbyte && mb_charlen(ptr) < cap->count1)
68 ! /* Abort if not enough characters to replace. */
69 ptr = ml_get_cursor();
70 ! if (STRLEN(ptr) < (unsigned)cap->count1
72 || (has_mbyte && mb_charlen(ptr) < cap->count1)
74 *** ../vim-7.1.056/src/version.c Tue Aug 7 21:59:26 2007
75 --- src/version.c Wed Aug 8 21:39:43 2007
79 { /* Add new patch number below this line */
85 hundred-and-one symptoms of being an internet addict:
86 95. Only communication in your household is through email.
88 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
89 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
90 \\\ download, build and distribute -- http://www.A-A-P.org ///
91 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///