summaryrefslogtreecommitdiffstats
path: root/src/gui_gtk_x11.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-08-26 22:02:51 +0200
committerBram Moolenaar <Bram@vim.org>2017-08-26 22:02:51 +0200
commit13ebb03e7520c2c34f93444b0146640ca08e7424 (patch)
tree6a56af98898e32e5aa48fb80fb5fce1248e1ec24 /src/gui_gtk_x11.c
parentdde81312b031211752d1fcb8539d79f90f324a2e (diff)
patch 8.0.1000: cannot open a terminal without running a job in itv8.0.1000
Problem: Cannot open a terminal without running a job in it. Solution: Make ":terminal NONE" open a terminal with a pty.
Diffstat (limited to 'src/gui_gtk_x11.c')
-rw-r--r--src/gui_gtk_x11.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui_gtk_x11.c b/src/gui_gtk_x11.c
index 480b8d3b83..cfbb36ce93 100644
--- a/src/gui_gtk_x11.c
+++ b/src/gui_gtk_x11.c
@@ -6643,6 +6643,12 @@ gui_mch_wait_for_chars(long wtime)
focus = gui.in_focus;
}
+# if defined(FEAT_JOB_CHANNEL)
+ /* Using an event handler for a channel that may be disconnected does
+ * not work, it hangs. Instead poll for messages. */
+ channel_handle_events(TRUE);
+# endif
+
#ifdef MESSAGE_QUEUE
# ifdef FEAT_TIMERS
did_add_timer = FALSE;