summaryrefslogtreecommitdiffstats
path: root/src/channel.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-05-28 13:20:31 +0200
committerBram Moolenaar <Bram@vim.org>2016-05-28 13:20:31 +0200
commitbf981eeb6b4ee63ae8543a7f9865ab700159a79c (patch)
treeb1b1480c2b36fb2bf813ababe30afdd00272b240 /src/channel.c
parent5850a764eae74a4dae7238e4e76b4c24f062699b (diff)
patch 7.4.1850v7.4.1850
Problem: GUI freezes when using a job. (Shougo) Solution: Unregister the channel when there is an input error.
Diffstat (limited to 'src/channel.c')
-rw-r--r--src/channel.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/channel.c b/src/channel.c
index 84dfcf7c0b..f4dc323b6f 100644
--- a/src/channel.c
+++ b/src/channel.c
@@ -2868,6 +2868,11 @@ channel_close_on_error(channel_T *channel, char *func)
* died. Don't close the channel right away, it may be the wrong moment
* to invoke callbacks. */
channel->ch_to_be_closed = TRUE;
+
+#ifdef FEAT_GUI
+ /* Stop listening to GUI events right away. */
+ channel_gui_unregister(channel);
+#endif
}
static void