mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 05:28:33 +00:00
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:
@@ -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))
|
||||
|
Reference in New Issue
Block a user