mirror of
https://github.com/neovim/neovim.git
synced 2025-11-13 13:59:16 +00:00
input: Fix ctrl+c handling in convert_input
This commit is contained in:
@@ -264,15 +264,15 @@ static void convert_input(void)
|
|||||||
|
|
||||||
for (int i = (int)count - 1; i >= 0; i--) {
|
for (int i = (int)count - 1; i >= 0; i--) {
|
||||||
if (inbuf[i] == 3) {
|
if (inbuf[i] == 3) {
|
||||||
|
got_int = true;
|
||||||
consume_count = (size_t)i;
|
consume_count = (size_t)i;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (consume_count) {
|
if (got_int) {
|
||||||
// Remove everything typed before the CTRL-C
|
// Remove everything typed before the CTRL-C
|
||||||
rbuffer_consumed(input_buffer, consume_count);
|
rbuffer_consumed(input_buffer, consume_count);
|
||||||
got_int = true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user