aboutsummaryrefslogtreecommitdiff
path: root/src/os/input.h
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2014-04-16 10:40:45 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-04-16 19:54:57 -0300
commita53f784738647f1327aca1a3e42f348ec13ef699 (patch)
treee421dc789d059d1f725787f126a8543123a84f1b /src/os/input.h
parent937922271a6039866ceee9800664cab3519ef3ef (diff)
downloadrneovim-a53f784738647f1327aca1a3e42f348ec13ef699.tar.gz
rneovim-a53f784738647f1327aca1a3e42f348ec13ef699.tar.bz2
rneovim-a53f784738647f1327aca1a3e42f348ec13ef699.zip
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.
Diffstat (limited to 'src/os/input.h')
-rw-r--r--src/os/input.h5
1 files changed, 2 insertions, 3 deletions
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 <stdint.h>
#include <stdbool.h>
-#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
+