Skip to content

Commit a96909c

Browse files
committed
patch 7.4.1496
Problem: Crash when built with GUI but it's not active. (Dominique Pelle) Solution: Check gui.in_use.
1 parent 802d559 commit a96909c

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

src/channel.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1046,8 +1046,11 @@ invoke_callback(channel_T *channel, char_u *callback, typval_T *argv)
10461046
cursor_on();
10471047
out_flush();
10481048
#ifdef FEAT_GUI
1049-
gui_update_cursor(TRUE, FALSE);
1050-
gui_mch_flush();
1049+
if (gui.in_use)
1050+
{
1051+
gui_update_cursor(TRUE, FALSE);
1052+
gui_mch_flush();
1053+
}
10511054
#endif
10521055
}
10531056

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -743,6 +743,8 @@ static char *(features[]) =
743743

744744
static int included_patches[] =
745745
{ /* Add new patch number below this line */
746+
/**/
747+
1496,
746748
/**/
747749
1495,
748750
/**/

0 commit comments

Comments
 (0)