summaryrefslogtreecommitdiff
path: root/src/popupmnu.c
diff options
context:
space:
mode:
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();
}