mirror of
https://github.com/vim/vim.git
synced 2025-09-27 04:14: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:
12
src/ui.c
12
src/ui.c
@@ -352,13 +352,23 @@ 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);
|
||||
}
|
||||
|
||||
/*****************************************************************************
|
||||
|
Reference in New Issue
Block a user