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

@@ -9064,9 +9064,18 @@ do_sleep(long msec)
if (due_time > 0 && due_time < wait_now)
wait_now = due_time;
}
#endif
#ifdef FEAT_JOB_CHANNEL
if (has_any_channel() && wait_now > 100L)
wait_now = 100L;
#endif
ui_delay(wait_now, TRUE);
ui_breakcheck();
#ifdef FEAT_JOB_CHANNEL
if (has_any_channel())
ui_breakcheck_force(TRUE);
else
#endif
ui_breakcheck();
#ifdef MESSAGE_QUEUE
/* Process the netbeans and clientserver messages that may have been
* received in the call to ui_breakcheck() when the GUI is in use. This