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.
diff --git a/src/ui.c b/src/ui.c
index f6c039b..ad29190 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -353,12 +353,22 @@
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);
}
/*****************************************************************************