diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-08-26 22:02:51 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-08-26 22:02:51 +0200 |
commit | 13ebb03e7520c2c34f93444b0146640ca08e7424 (patch) | |
tree | 6a56af98898e32e5aa48fb80fb5fce1248e1ec24 /src/gui_gtk_x11.c | |
parent | dde81312b031211752d1fcb8539d79f90f324a2e (diff) | |
download | vim-git-13ebb03e7520c2c34f93444b0146640ca08e7424.tar.gz |
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.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui_gtk_x11.c b/src/gui_gtk_x11.c index 480b8d3b8..cfbb36ce9 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; |