0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.0.0018

Problem:    When using ":sleep" channel input is not handled.
Solution:   When there is a channel check for input also when not in raw mode.
            Check every 100 msec.
This commit is contained in:
Bram Moolenaar
2016-09-29 15:18:57 +02:00
parent 1777785751
commit b9c31e71f5
12 changed files with 40 additions and 10 deletions

View File

@@ -5364,9 +5364,10 @@ mch_clear_job(job_T *job)
* In cooked mode we should get SIGINT, no need to check.
*/
void
mch_breakcheck(void)
mch_breakcheck(int force)
{
if (curr_tmode == TMODE_RAW && RealWaitForChar(read_cmd_fd, 0L, NULL, NULL))
if ((curr_tmode == TMODE_RAW || force)
&& RealWaitForChar(read_cmd_fd, 0L, NULL, NULL))
fill_input_buf(FALSE);
}