diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2014-11-27 12:54:26 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-11-27 14:12:59 -0300 |
commit | 541eaf598c25e0b853ef441b57c9f7d1bbf3450c (patch) | |
tree | 62919511c5968a76b8add898b812aeaf2edc02a5 /src/nvim/misc1.c | |
parent | f6c89ec70409badb7ca477de47dd1f8dbf3de376 (diff) | |
download | rneovim-541eaf598c25e0b853ef441b57c9f7d1bbf3450c.tar.gz rneovim-541eaf598c25e0b853ef441b57c9f7d1bbf3450c.tar.bz2 rneovim-541eaf598c25e0b853ef441b57c9f7d1bbf3450c.zip |
ui: Remove ui_inchar/ui_char_avail
Also:
- Remove NO_CONSOLE_INPUT/NO_CONSULE preprocessor conditionals
- Remove ctrl_c_interrupts variable, check for mapped_ctrl_c directly in
process_interrupts()
- Move ui_inchar profiling to input_poll which is where Nvim blocks for input.
Diffstat (limited to 'src/nvim/misc1.c')
-rw-r--r-- | src/nvim/misc1.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/misc1.c b/src/nvim/misc1.c index 310cb6faac..cef7ea0627 100644 --- a/src/nvim/misc1.c +++ b/src/nvim/misc1.c @@ -58,6 +58,7 @@ #include "nvim/window.h" #include "nvim/os/os.h" #include "nvim/os/shell.h" +#include "nvim/os/input.h" #ifdef INCLUDE_GENERATED_DECLARATIONS # include "misc1.c.generated.h" @@ -2383,7 +2384,7 @@ int get_keystroke(void) /* First time: blocking wait. Second time: wait up to 100ms for a * terminal code to complete. */ - n = ui_inchar(buf + len, maxlen, len == 0 ? -1L : 100L, 0); + n = os_inchar(buf + len, maxlen, len == 0 ? -1L : 100L, 0); if (n > 0) { /* Replace zero and CSI by a special key code. */ n = fix_input_buffer(buf + len, n, FALSE); |