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)
diff --git a/src/getchar.c b/src/getchar.c
index d646dc4..9edb767 100644
--- a/src/getchar.c
+++ b/src/getchar.c
@@ -3707,6 +3707,9 @@
{
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;
}
@@ -3739,7 +3742,7 @@
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)
mapped_ctrl_c = TRUE;