diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-10-19 20:08:45 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-10-19 20:08:45 +0100 |
commit | f47ebf1e1a0a6473b10fb4c92c9c6427aab4dc91 (patch) | |
tree | 91b63efb29f6d59c6925f799b8d33e94fb731ac0 /src/register.c | |
parent | 604e207e277767a67cbf4a6a179080efb830b9e7 (diff) | |
download | vim-git-f47ebf1e1a0a6473b10fb4c92c9c6427aab4dc91.tar.gz |
patch 8.2.3540: the mark '] is wrong after put with a countv8.2.3540
Problem: The mark '] is wrong after put with a count. (Naohiro Ono)
Solution: Use the right line number. (closes #8956)
Diffstat (limited to 'src/register.c')
-rw-r--r-- | src/register.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/register.c b/src/register.c index 9f179ea15..522500ce1 100644 --- a/src/register.c +++ b/src/register.c @@ -2183,7 +2183,7 @@ error: curbuf->b_op_start.lnum, nr_lines); // put '] mark at last inserted character - curbuf->b_op_end.lnum = lnum; + curbuf->b_op_end.lnum = new_lnum; // correct length for change in indent col = (colnr_T)STRLEN(y_array[y_size - 1]) - lendiff; if (col > 1) |