patch 8.1.0849: cursorline highlight is not always updated
Problem: Cursorline highlight is not always updated.
Solution: Set w_last_cursorline when redrawing. Fix resetting cursor flags
when using the popup menu.
diff --git a/src/popupmnu.c b/src/popupmnu.c
index 2f2bde0..755dba4 100644
--- a/src/popupmnu.c
+++ b/src/popupmnu.c
@@ -368,7 +368,7 @@
// Update the cursor position to be able to compute the popup menu
// position. The cursor line length may have changed because of the
// inserted completion.
- curwin->w_valid &= VALID_CROW|VALID_CHEIGHT;
+ curwin->w_valid &= ~(VALID_CROW|VALID_CHEIGHT);
validate_cursor();
}