comparison src/evalfunc.c @ 11020:50f3e37bc210 v8.0.0399

patch 8.0.0399: crash when using balloon_show() when not supported commit https://github.com/vim/vim/commit/caf6434ac937cf26050276d7b474be2d2d6a06b3 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Mar 2 22:11:33 2017 +0100 patch 8.0.0399: crash when using balloon_show() when not supported Problem: Crash when using balloon_show() when not supported. (Hirohito Higashi) Solution: Check for balloonEval not to be NULL. (Ken Takata)
author Christian Brabandt <cb@256bit.org>
date Thu, 02 Mar 2017 22:15:04 +0100
parents fb2bcfa6a8de
children 7c7e496e625d
comparison
equal deleted inserted replaced
11019:05daa23e1ecf 11020:50f3e37bc210
1373 */ 1373 */
1374 #ifdef FEAT_BEVAL 1374 #ifdef FEAT_BEVAL
1375 static void 1375 static void
1376 f_balloon_show(typval_T *argvars, typval_T *rettv UNUSED) 1376 f_balloon_show(typval_T *argvars, typval_T *rettv UNUSED)
1377 { 1377 {
1378 gui_mch_post_balloon(balloonEval, get_tv_string_chk(&argvars[0])); 1378 if (balloonEval != NULL)
1379 gui_mch_post_balloon(balloonEval, get_tv_string_chk(&argvars[0]));
1379 } 1380 }
1380 #endif 1381 #endif
1381 1382
1382 /* 1383 /*
1383 * "browse(save, title, initdir, default)" function 1384 * "browse(save, title, initdir, default)" function