diff options
author | Bram Moolenaar <Bram@vim.org> | 2023-06-01 19:27:08 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2023-06-01 19:27:08 +0100 |
commit | 8509014adda188ee8bdf6a2e123fbf15a91b29d2 (patch) | |
tree | 122f7ac29f4939cf2b87916e72b9fcb92475f08c /src/eval.c | |
parent | eb43b7f0531bd13d15580b5c262a25d6a52a0823 (diff) |
patch 9.0.1597: cursor ends up below the window after a putv9.0.1597
Problem: Cursor ends up below the window after a put.
Solution: Mark w_crow and w_botline invalid when changing the cursor line.
(closes #12465)
Diffstat (limited to 'src/eval.c')
-rw-r--r-- | src/eval.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/eval.c b/src/eval.c index b8d954d6a2..89141bfe3e 100644 --- a/src/eval.c +++ b/src/eval.c @@ -6322,6 +6322,10 @@ var2fpos( if (name[0] == 'w' && dollar_lnum) { + // the "w_valid" flags are not reset when moving the cursor, but they + // do matter for update_topline() and validate_botline(). + check_cursor_moved(curwin); + pos.col = 0; if (name[1] == '0') // "w0": first visible line { |