summaryrefslogtreecommitdiff
path: root/src/ui.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui.c')
-rw-r--r--src/ui.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/ui.c b/src/ui.c
index f6c039bd5..ad2919052 100644
--- 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);
}
/*****************************************************************************