Mercurial > vim
comparison src/ex_docmd.c @ 10240:175b1116f96a v8.0.0018
commit https://github.com/vim/vim/commit/b9c31e71f5a4653a27e81c21226039bfa35b9131
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Sep 29 15:18:57 2016 +0200
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.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 29 Sep 2016 15:30:05 +0200 |
parents | 4669440016f2 |
children | c036c0f636d5 |
comparison
equal
deleted
inserted
replaced
10239:ebbc8d21105b | 10240:175b1116f96a |
---|---|
9063 | 9063 |
9064 if (due_time > 0 && due_time < wait_now) | 9064 if (due_time > 0 && due_time < wait_now) |
9065 wait_now = due_time; | 9065 wait_now = due_time; |
9066 } | 9066 } |
9067 #endif | 9067 #endif |
9068 #ifdef FEAT_JOB_CHANNEL | |
9069 if (has_any_channel() && wait_now > 100L) | |
9070 wait_now = 100L; | |
9071 #endif | |
9068 ui_delay(wait_now, TRUE); | 9072 ui_delay(wait_now, TRUE); |
9069 ui_breakcheck(); | 9073 #ifdef FEAT_JOB_CHANNEL |
9074 if (has_any_channel()) | |
9075 ui_breakcheck_force(TRUE); | |
9076 else | |
9077 #endif | |
9078 ui_breakcheck(); | |
9070 #ifdef MESSAGE_QUEUE | 9079 #ifdef MESSAGE_QUEUE |
9071 /* Process the netbeans and clientserver messages that may have been | 9080 /* Process the netbeans and clientserver messages that may have been |
9072 * received in the call to ui_breakcheck() when the GUI is in use. This | 9081 * received in the call to ui_breakcheck() when the GUI is in use. This |
9073 * may occur when running a test case. */ | 9082 * may occur when running a test case. */ |
9074 parse_queued_messages(); | 9083 parse_queued_messages(); |