From 8a7383b6d28be02413cf115d4b8ed1b44d60dd9f Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Mon, 8 Jul 2019 22:23:33 +0200 Subject: patch 8.1.1654: GUI: screen updates from 'balloonexpr' are not displayed Problem: GUI: screen updates from 'balloonexpr' are not displayed. Solution: Update the screen if needed. Also avoid the cursor being displayed in the wrong position. --- src/beval.c | 14 ++++++++++---- src/version.c | 2 ++ 2 files changed, 12 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/beval.c b/src/beval.c index 68df2be9ea..ef307c5246 100644 --- a/src/beval.c +++ b/src/beval.c @@ -294,11 +294,17 @@ general_beval_cb(BalloonEval *beval, int state UNUSED) set_vim_var_string(VV_BEVAL_TEXT, NULL, -1); if (result != NULL && result[0] != NUL) - { post_balloon(beval, result, NULL); - recursive = FALSE; - return; - } + +# ifdef FEAT_GUI + // The 'balloonexpr' evaluation may show something on the screen + // that requires a screen update. + if (gui.in_use && must_redraw) + redraw_after_callback(FALSE); +# endif + + recursive = FALSE; + return; } } #endif diff --git a/src/version.c b/src/version.c index 03361ca2fa..d35560adc5 100644 --- a/src/version.c +++ b/src/version.c @@ -777,6 +777,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1654, /**/ 1653, /**/ -- cgit v1.2.3