# HG changeset patch # User Christian Brabandt # Date 1457213404 -3600 # Node ID 05ec48deb353af31436af28c19987bd81654b1cc # Parent 43c5db8e1c49a0a7d872ba4a1399f6ca88b3b628 commit https://github.com/vim/vim/commit/a96909cfaf21dbbf033e904ccdcda9905799f0fc Author: Bram Moolenaar Date: Sat Mar 5 22:19:41 2016 +0100 patch 7.4.1496 Problem: Crash when built with GUI but it's not active. (Dominique Pelle) Solution: Check gui.in_use. diff --git a/src/channel.c b/src/channel.c --- a/src/channel.c +++ b/src/channel.c @@ -1046,8 +1046,11 @@ invoke_callback(channel_T *channel, char cursor_on(); out_flush(); #ifdef FEAT_GUI - gui_update_cursor(TRUE, FALSE); - gui_mch_flush(); + if (gui.in_use) + { + gui_update_cursor(TRUE, FALSE); + gui_mch_flush(); + } #endif } diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -744,6 +744,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1496, +/**/ 1495, /**/ 1494,