From a53f784738647f1327aca1a3e42f348ec13ef699 Mon Sep 17 00:00:00 2001 From: Thiago de Arruda Date: Wed, 16 Apr 2014 10:40:45 -0300 Subject: Handle special KE_EVENT case where maxlen < 3 Possible bug reported by @oni-link [here](https://github.com/neovim/neovim/pull/485/files#r11664573). It was handled by doing a circular walk through a key buffer and saving the index between calls with a static variable. Also replaced some `char_u` occurrences by `uint8_t` and removed unused headers in input.c module. --- src/os/input.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/os/input.h') diff --git a/src/os/input.h b/src/os/input.h index bff66766d7..5eed09d2ee 100644 --- a/src/os/input.h +++ b/src/os/input.h @@ -4,15 +4,14 @@ #include #include -#include "types.h" - void input_init(void); bool input_ready(void); void input_start(void); void input_stop(void); uint32_t input_read(char *buf, uint32_t count); -int os_inchar(char_u *, int, int32_t, int); +int os_inchar(uint8_t *, int, int32_t, int); bool os_char_avail(void); void os_breakcheck(void); #endif // NEOVIM_OS_INPUT_H + -- cgit