1
0
forked from aniani/vim

patch 8.2.1737: cursor line highlight in popup window is not always updated

Problem:    Cursor line highlight in popup window is not always updated.
Solution:   Check if the cursor has moved. (closes #7010)
This commit is contained in:
Bram Moolenaar
2020-09-24 22:57:31 +02:00
parent 531be47ac5
commit 10476521f5
4 changed files with 50 additions and 4 deletions

View File

@@ -3711,6 +3711,11 @@ update_popups(void (*win_update)(win_T *wp))
// Draw the popup text, unless it's off screen.
if (wp->w_winrow < screen_Rows && wp->w_wincol < screen_Columns)
{
// May need to update the "cursorline" highlighting, which may also
// change "topline"
if (wp->w_popup_last_curline != wp->w_cursor.lnum)
popup_highlight_curline(wp);
win_update(wp);
// move the cursor into the visible lines, otherwise executing