summaryrefslogtreecommitdiff
path: root/src/popupmnu.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-01-30 21:41:14 +0100
committerBram Moolenaar <Bram@vim.org>2019-01-30 21:41:14 +0100
commitc07ff5c60ad35982e9cdaa9dd72d3d1669935e87 (patch)
tree44d2c989bbe002e8698dd4f81514c407a6a85b06 /src/popupmnu.c
parentb191be2f0000bf1de09a79226cfd405d9387caa3 (diff)
downloadvim-git-c07ff5c60ad35982e9cdaa9dd72d3d1669935e87.tar.gz
patch 8.1.0849: cursorline highlight is not always updatedv8.1.0849
Problem: Cursorline highlight is not always updated. Solution: Set w_last_cursorline when redrawing. Fix resetting cursor flags when using the popup menu.
Diffstat (limited to 'src/popupmnu.c')
-rw-r--r--src/popupmnu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/popupmnu.c b/src/popupmnu.c
index 2f2bde0bb..755dba45a 100644
--- a/src/popupmnu.c
+++ b/src/popupmnu.c
@@ -368,7 +368,7 @@ pum_call_update_screen()
// 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();
}