patch 8.1.1657: Terminal: screen updates from 'balloonexpr' are not displayed
Problem: Terminal: screen updates from 'balloonexpr' are not displayed.
Solution: Update the screen if needed. Fix the word position for
"mousemoved".
diff --git a/src/popupwin.c b/src/popupwin.c
index a997cde..59aaa66 100644
--- a/src/popupwin.c
+++ b/src/popupwin.c
@@ -188,7 +188,7 @@
int col;
if (find_word_under_cursor(mouse_row, mouse_col, TRUE, flags,
- NULL, NULL, &text, &col) == OK)
+ NULL, NULL, &text, NULL, &col) == OK)
{
wp->w_popup_mouse_mincol = col;
wp->w_popup_mouse_maxcol = col + STRLEN(text) - 1;
@@ -1437,6 +1437,7 @@
{
typval_T res;
+ch_log(NULL, "closing popup %d", wp->w_id);
res.v_type = VAR_NUMBER;
res.vval.v_number = -2;
// Careful: this makes "wp" invalid.