diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-11-04 15:10:11 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-11-04 15:10:11 +0000 |
commit | 0b5b06cb4777d1401fdf83e7d48d287662236e7e (patch) | |
tree | 43cef2f76a19e461dfa823dc6b84f47ff4fb220b /src/ex_docmd.c | |
parent | aaec1d4fb12efb82b87ad322e95994de77b1a833 (diff) |
patch 8.2.3581: reading character past end of linev8.2.3581
Problem: Reading character past end of line.
Solution: Correct the cursor column.
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r-- | src/ex_docmd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index 072effdec4..052f230dd4 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -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); } |