0
0
mirror of https://github.com/vim/vim.git synced 2025-09-28 04:24:06 -04:00

patch 9.0.1597: cursor ends up below the window after a put

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)
This commit is contained in:
Bram Moolenaar
2023-06-01 19:27:08 +01:00
parent eb43b7f053
commit 8509014add
6 changed files with 39 additions and 2 deletions

View File

@@ -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
{