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:
@@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user