1
0
forked from aniani/vim

patch 8.2.3581: reading character past end of line

Problem:    Reading character past end of line.
Solution:   Correct the cursor column.
This commit is contained in:
Bram Moolenaar
2021-11-04 15:10:11 +00:00
parent aaec1d4fb1
commit 0b5b06cb47
3 changed files with 12 additions and 0 deletions

View File

@@ -7774,6 +7774,7 @@ ex_put(exarg_T *eap)
eap->forceit = TRUE;
}
curwin->w_cursor.lnum = eap->line2;
check_cursor_col();
do_put(eap->regname, NULL, eap->forceit ? BACKWARD : FORWARD, 1L,
PUT_LINE|PUT_CURSLINE);
}