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.
This commit is contained in:
Thiago de Arruda
2014-11-27 12:54:26 -03:00
parent f6c89ec704
commit 541eaf598c
9 changed files with 19 additions and 118 deletions

View File

@@ -2481,7 +2481,7 @@ inchar (
char_u dum[DUM_LEN + 1];
for (;; ) {
len = ui_inchar(dum, DUM_LEN, 0L, 0);
len = os_inchar(dum, DUM_LEN, 0L, 0);
if (len == 0 || (len == 1 && dum[0] == 3))
break;
}
@@ -2498,7 +2498,7 @@ inchar (
* Fill up to a third of the buffer, because each character may be
* tripled below.
*/
len = ui_inchar(buf, maxlen / 3, wait_time, tb_change_cnt);
len = os_inchar(buf, maxlen / 3, wait_time, tb_change_cnt);
}
if (typebuf_changed(tb_change_cnt))