mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 14:08:32 +00:00
vim-patch:9.0.1597: cursor ends up below the window after a put (#23873)
Problem: Cursor ends up below the window after a put.
Solution: Mark w_crow and w_botline invalid when changing the cursor line.
(closes vim/vim#12465)
8509014add
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
@@ -3484,6 +3484,7 @@ void do_put(int regname, yankreg_T *reg, int dir, long count, int flags)
|
||||
if (lnum == curwin->w_cursor.lnum) {
|
||||
// make sure curwin->w_virtcol is updated
|
||||
changed_cline_bef_curs();
|
||||
invalidate_botline();
|
||||
curwin->w_cursor.col += (colnr_T)(totlen - 1);
|
||||
}
|
||||
changed_bytes(lnum, col);
|
||||
|
Reference in New Issue
Block a user