Mercurial > vim
changeset 9133:dec3b7b977c0 v7.4.1850
commit https://github.com/vim/vim/commit/bf981eeb6b4ee63ae8543a7f9865ab700159a79c
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat May 28 13:20:31 2016 +0200
patch 7.4.1850
Problem: GUI freezes when using a job. (Shougo)
Solution: Unregister the channel when there is an input error.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 28 May 2016 13:30:05 +0200 |
parents | 09a77387f1d9 |
children | e2761fc5a001 |
files | src/channel.c src/version.c |
diffstat | 2 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/channel.c +++ b/src/channel.c @@ -2868,6 +2868,11 @@ channel_close_on_error(channel_T *channe * 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