Mercurial > vim
diff src/ui.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 | 4aead6a9b7a9 |
children | abc27e523e2a |
line wrap: on
line diff
--- a/src/ui.c +++ b/src/ui.c @@ -353,12 +353,22 @@ ui_new_shellsize(void) void ui_breakcheck(void) { + ui_breakcheck_force(FALSE); +} + +/* + * When "force" is true also check when the terminal is not in raw mode. + * This is useful to read input on channels. + */ + void +ui_breakcheck_force(int force) +{ #ifdef FEAT_GUI if (gui.in_use) gui_mch_update(); else #endif - mch_breakcheck(); + mch_breakcheck(force); } /*****************************************************************************