0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

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".
This commit is contained in:
Bram Moolenaar
2019-07-09 23:22:15 +02:00
parent e089c3fd69
commit 7ba343e634
6 changed files with 48 additions and 38 deletions

View File

@@ -188,7 +188,7 @@ set_mousemoved_columns(win_T *wp, int flags)
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 @@ check_mouse_moved(win_T *wp, win_T *mouse_wp)
{
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.