Skip to content

Commit 8a7383b

Browse files
committed
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.
1 parent 0d07155 commit 8a7383b

2 files changed

Lines changed: 12 additions & 4 deletions

File tree

src/beval.c

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -294,11 +294,17 @@ general_beval_cb(BalloonEval *beval, int state UNUSED)
294294

295295
set_vim_var_string(VV_BEVAL_TEXT, NULL, -1);
296296
if (result != NULL && result[0] != NUL)
297-
{
298297
post_balloon(beval, result, NULL);
299-
recursive = FALSE;
300-
return;
301-
}
298+
299+
# ifdef FEAT_GUI
300+
// The 'balloonexpr' evaluation may show something on the screen
301+
// that requires a screen update.
302+
if (gui.in_use && must_redraw)
303+
redraw_after_callback(FALSE);
304+
# endif
305+
306+
recursive = FALSE;
307+
return;
302308
}
303309
}
304310
#endif

src/version.c

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

778778
static int included_patches[] =
779779
{ /* Add new patch number below this line */
780+
/**/
781+
1654,
780782
/**/
781783
1653,
782784
/**/

0 commit comments

Comments
 (0)