summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ex_docmd.c5
-rw-r--r--src/version.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index fec3a8e37..e198a286a 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -9157,6 +9157,11 @@ do_sleep(long msec)
parse_queued_messages();
#endif
}
+
+ // If CTRL-C was typed to interrupt the sleep, drop the CTRL-C from the
+ // input buffer, otherwise a following call to input() fails.
+ if (got_int)
+ (void)vpeekc();
}
static void
diff --git a/src/version.c b/src/version.c
index 8d9a339f9..c8dde84e1 100644
--- a/src/version.c
+++ b/src/version.c
@@ -790,6 +790,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 158,
+/**/
157,
/**/
156,