vim-patch:8.2.3581: reading character past end of line

Problem:    Reading character past end of line.
Solution:   Correct the cursor column.
0b5b06cb47
This commit is contained in:
zeertzjq
2022-01-29 06:05:39 +08:00
parent 436a470ef5
commit 6f04d3f3ef
2 changed files with 10 additions and 0 deletions

View File

@@ -8133,6 +8133,7 @@ static void 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, 1,
PUT_LINE|PUT_CURSLINE);
}