mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch: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) https://code.google.com/p/vim/source/detail?r=v7-4-468
This commit is contained in:
parent
c3de63bfbc
commit
0158539c77
@ -2980,8 +2980,12 @@ do_map (
|
||||
}
|
||||
|
||||
if (maptype == 1) { /* delete entry */
|
||||
if (!did_it)
|
||||
if (!did_it) {
|
||||
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;
|
||||
}
|
||||
|
||||
@ -3005,7 +3009,7 @@ do_map (
|
||||
*/
|
||||
mp = xmalloc(sizeof(mapblock_T));
|
||||
|
||||
/* 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)
|
||||
mapped_ctrl_c = TRUE;
|
||||
|
||||
|
@ -270,7 +270,7 @@ static int included_patches[] = {
|
||||
//471 NA
|
||||
470,
|
||||
//469 NA
|
||||
//468,
|
||||
468,
|
||||
467,
|
||||
//465 NA
|
||||
//464 NA
|
||||
|
Loading…
Reference in New Issue
Block a user