mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 13:38:34 +00:00
refactor: allow us to process a child queue only while waiting on input
This commit is contained in:
@@ -1532,8 +1532,9 @@ int safe_vgetc(void)
|
||||
int c;
|
||||
|
||||
c = vgetc();
|
||||
if (c == NUL)
|
||||
c = get_keystroke();
|
||||
if (c == NUL) {
|
||||
c = get_keystroke(NULL);
|
||||
}
|
||||
return c;
|
||||
}
|
||||
|
||||
@@ -2447,9 +2448,10 @@ int inchar(
|
||||
char_u dum[DUM_LEN + 1];
|
||||
|
||||
for (;; ) {
|
||||
len = os_inchar(dum, DUM_LEN, 0L, 0);
|
||||
if (len == 0 || (len == 1 && dum[0] == 3))
|
||||
len = os_inchar(dum, DUM_LEN, 0L, 0, NULL);
|
||||
if (len == 0 || (len == 1 && dum[0] == 3)) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
return retesc;
|
||||
}
|
||||
@@ -2460,7 +2462,7 @@ int inchar(
|
||||
|
||||
// Fill up to a third of the buffer, because each character may be
|
||||
// tripled below.
|
||||
len = os_inchar(buf, maxlen / 3, (int)wait_time, tb_change_cnt);
|
||||
len = os_inchar(buf, maxlen / 3, (int)wait_time, tb_change_cnt, NULL);
|
||||
}
|
||||
|
||||
// If the typebuf was changed further down, it is like nothing was added by
|
||||
|
Reference in New Issue
Block a user