0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

updated for version 7.4.468

Problem:    Issue 26: CTRL-C does not interrupt after it was mapped and then
            unmapped.
Solution:   Reset mapped_ctrl_c. (Christian Brabandt)
This commit is contained in:
Bram Moolenaar 2014-10-09 13:36:16 +02:00
parent 404406ad6b
commit 9a95bdc52a
2 changed files with 6 additions and 1 deletions

View File

@ -3707,6 +3707,9 @@ do_map(maptype, arg, mode, abbrev)
{ {
if (!did_it) if (!did_it)
retval = 2; /* no match */ retval = 2; /* no match */
else if (*keys == Ctrl_C)
/* If CTRL-C has been unmapped, reuse it for Interrupting. */
mapped_ctrl_c = FALSE;
goto theend; goto theend;
} }
@ -3739,7 +3742,7 @@ do_map(maptype, arg, mode, abbrev)
goto theend; goto theend;
} }
/* If CTRL-C has been mapped, don't always use it for Interrupting */ /* If CTRL-C has been mapped, don't always use it for Interrupting. */
if (*keys == Ctrl_C) if (*keys == Ctrl_C)
mapped_ctrl_c = TRUE; mapped_ctrl_c = TRUE;

View File

@ -741,6 +741,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 */
/**/
468,
/**/ /**/
467, 467,
/**/ /**/