aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-08-28 01:56:02 +0200
committerGitHub <noreply@github.com>2019-08-28 01:56:02 +0200
commit82d52b229df711b710862ce772603ea55113a32e (patch)
treec097dd598d961b9090a682cf8267ca615d42b592 /src/nvim/os
parent3c9c64d9dd486598f36c597da1eaffebb3bf4cef (diff)
parent3157baed83b7e94f2ff92e6fd97e85dab41a1c94 (diff)
downloadrneovim-82d52b229df711b710862ce772603ea55113a32e.tar.gz
rneovim-82d52b229df711b710862ce772603ea55113a32e.tar.bz2
rneovim-82d52b229df711b710862ce772603ea55113a32e.zip
Merge #4448 'paste: redesign'
fix #3447 fix #3566 fix #7066 fix #7212 fix #7273 fix #7455 fix #10415 NA vim-patches: vim-patch:8.1.1198 vim-patch:8.1.0224 vim-patch:8.0.1299 vim-patch:8.0.0569 vim-patch:8.0.0303 vim-patch:8.0.0296 vim-patch:8.0.0244 vim-patch:8.0.0238 vim-patch:8.0.0232 vim-patch:8.0.0231 vim-patch:8.0.0230 vim-patch:8.0.0210
Diffstat (limited to 'src/nvim/os')
-rw-r--r--src/nvim/os/input.c4
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);
}
}