0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

updated for version 7.1-057

This commit is contained in:
Bram Moolenaar
2007-08-08 19:42:05 +00:00
parent 1b0b07f29e
commit c2f5abcf15
2 changed files with 16 additions and 4 deletions

View File

@@ -889,6 +889,11 @@ getcount:
++no_mapping; ++no_mapping;
++allow_keys; /* no mapping for nchar, but allow key codes */ ++allow_keys; /* no mapping for nchar, but allow key codes */
#ifdef FEAT_AUTOCMD
/* Don't generate a CursorHold event here, most commands can't handle
* it, e.g., nv_replace(), nv_csearch(). */
did_cursorhold = TRUE;
#endif
if (ca.cmdchar == 'g') if (ca.cmdchar == 'g')
{ {
/* /*
@@ -6662,6 +6667,13 @@ nv_replace(cap)
else else
had_ctrl_v = NUL; had_ctrl_v = NUL;
/* Abort if the character is a special key. */
if (IS_SPECIAL(cap->nchar))
{
clearopbeep(cap->oap);
return;
}
#ifdef FEAT_VISUAL #ifdef FEAT_VISUAL
/* Visual mode "r" */ /* Visual mode "r" */
if (VIsual_active) if (VIsual_active)
@@ -6688,11 +6700,9 @@ nv_replace(cap)
} }
#endif #endif
/* /* Abort if not enough characters to replace. */
* Check for a special key or not enough characters to replace.
*/
ptr = ml_get_cursor(); ptr = ml_get_cursor();
if (IS_SPECIAL(cap->nchar) || STRLEN(ptr) < (unsigned)cap->count1 if (STRLEN(ptr) < (unsigned)cap->count1
#ifdef FEAT_MBYTE #ifdef FEAT_MBYTE
|| (has_mbyte && mb_charlen(ptr) < cap->count1) || (has_mbyte && mb_charlen(ptr) < cap->count1)
#endif #endif

View File

@@ -666,6 +666,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
57,
/**/ /**/
56, 56,
/**/ /**/