0
0
mirror of https://github.com/vim/vim.git synced 2025-07-04 23:07:33 -04:00

patch 7.4.1496

Problem:    Crash when built with GUI but it's not active. (Dominique Pelle)
Solution:   Check gui.in_use.
This commit is contained in:
Bram Moolenaar 2016-03-05 22:19:41 +01:00
parent 802d559431
commit a96909cfaf
2 changed files with 7 additions and 2 deletions

View File

@ -1046,8 +1046,11 @@ invoke_callback(channel_T *channel, char_u *callback, typval_T *argv)
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
}

View File

@ -743,6 +743,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1496,
/**/
1495,
/**/