aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os/input.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2015-01-12 10:14:52 -0500
committerJustin M. Keyes <justinkz@gmail.com>2015-01-12 10:14:52 -0500
commitd7e18b5c9591da967b707ee4219f1f8789edc175 (patch)
tree1d69a0495a3f08feee1715bc04ba8984135bd03e /src/nvim/os/input.c
parent4c55c34efaabaa151391edf59c59a14411a79d8c (diff)
downloadrneovim-d7e18b5c9591da967b707ee4219f1f8789edc175.tar.gz
rneovim-d7e18b5c9591da967b707ee4219f1f8789edc175.tar.bz2
rneovim-d7e18b5c9591da967b707ee4219f1f8789edc175.zip
Revert "[WIP] "abstract_ui" fixes and improvements"
Diffstat (limited to 'src/nvim/os/input.c')
-rw-r--r--src/nvim/os/input.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/nvim/os/input.c b/src/nvim/os/input.c
index 130e239a34..c0d588f4ef 100644
--- a/src/nvim/os/input.c
+++ b/src/nvim/os/input.c
@@ -187,20 +187,14 @@ size_t input_enqueue(String keys)
unsigned int new_size = trans_special((uint8_t **)&ptr, buf, false);
if (!new_size) {
- if (*ptr == '<') {
- // Invalid key sequence, skip until the next '>' or until *end
- do {
- ptr++;
- } while (ptr < end && *ptr != '>');
- ptr++;
- continue;
- }
// copy the character unmodified
*buf = (uint8_t)*ptr++;
new_size = 1;
}
new_size = handle_mouse_event(&ptr, buf, new_size);
+ // TODO(tarruda): Don't produce past unclosed '<' characters, except if
+ // there's a lot of characters after the '<'
rbuffer_write(input_buffer, (char *)buf, new_size);
}