]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 7.4.1850 v7.4.1850
authorBram Moolenaar <Bram@vim.org>
Sat, 28 May 2016 11:20:31 +0000 (13:20 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 28 May 2016 11:20:31 +0000 (13:20 +0200)
Problem:    GUI freezes when using a job. (Shougo)
Solution:   Unregister the channel when there is an input error.

src/channel.c
src/version.c

index 84dfcf7c0b7a17a21700cfb51a463460e18b03b5..f4dc323b6f428b96019c4875b2b53e89233f2685 100644 (file)
@@ -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
index 2a259a528eb74e364d590712e70e376322bf60f2..80793f10bb0fbcb17a59f7c095677526c4f4e874 100644 (file)
@@ -753,6 +753,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1850,
 /**/
     1849,
 /**/