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

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.
This commit is contained in:
Bram Moolenaar 2019-07-08 22:23:33 +02:00
parent 0d07155c8b
commit 8a7383b6d2
2 changed files with 12 additions and 4 deletions

View File

@ -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

View File

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