From 58033e15d536a03f47de1e547ef0780dd05cd887 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Sun, 19 Jan 2020 09:44:43 -0500 Subject: 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 --- src/nvim/screen.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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. -- cgit