aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-01-19 09:44:43 -0500
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-01-19 09:47:57 -0500
commit58033e15d536a03f47de1e547ef0780dd05cd887 (patch)
treeb25667de106189324e026e80cabc3b41fbc49ef3
parentacaf5d233b9128c4b494cec6ca1bf090dc2f7a56 (diff)
downloadrneovim-58033e15d536a03f47de1e547ef0780dd05cd887.tar.gz
rneovim-58033e15d536a03f47de1e547ef0780dd05cd887.tar.bz2
rneovim-58033e15d536a03f47de1e547ef0780dd05cd887.zip
vim-patch:8.1.2031: cursor position wrong when resizing and using conceal
Problem: Cursor position wrong when resizing and using conceal. Solution: Set the flags that the cursor position is valid when setting the row and column during redrawing. (closes vim/vim#4931) https://github.com/vim/vim/commit/5babc6e858afbfa54aa0e203a64b9c70175487b7
-rw-r--r--src/nvim/screen.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c
index 24ad012201..047af8db75 100644
--- a/src/nvim/screen.c
+++ b/src/nvim/screen.c
@@ -3868,6 +3868,7 @@ win_line (
}
wp->w_wrow = row;
did_wcol = true;
+ curwin->w_valid |= VALID_WCOL|VALID_WROW|VALID_VIRTCOL;
}
// Don't override visual selection highlighting.