diff options
Diffstat (limited to 'src/nvim/os/input.c')
-rw-r--r-- | src/nvim/os/input.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/os/input.c b/src/nvim/os/input.c index 95e9e8e414..83ac3dfa62 100644 --- a/src/nvim/os/input.c +++ b/src/nvim/os/input.c @@ -448,7 +448,7 @@ static void process_interrupts(void) size_t consume_count = 0; RBUFFER_EACH_REVERSE(input_buffer, c, i) { - if ((uint8_t)c == 3) { + if ((uint8_t)c == Ctrl_C) { got_int = true; consume_count = i; break; @@ -456,7 +456,7 @@ static void process_interrupts(void) } if (got_int && consume_count) { - // Remove everything typed before the CTRL-C + // Remove all unprocessed input (typeahead) before the CTRL-C. rbuffer_consumed(input_buffer, consume_count); } } |