diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-05-26 07:20:39 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-26 07:20:39 +0800 |
| commit | cbf57fa353e54e01ae405565caddf3725a2814ba (patch) | |
| tree | 4784b7a088aa3bd9b2111fcd3a2187b977f68cbf /src/nvim/testdir | |
| parent | 9fec6dc9a25b5cf9c9a444ac2bd0728e8af3229e (diff) | |
| download | rneovim-cbf57fa353e54e01ae405565caddf3725a2814ba.tar.gz rneovim-cbf57fa353e54e01ae405565caddf3725a2814ba.tar.bz2 rneovim-cbf57fa353e54e01ae405565caddf3725a2814ba.zip | |
vim-patch:8.2.5016: access before start of text with a put command (#18742)
Problem: Access before start of text with a put command.
Solution: Check the length is more than zero.
https://github.com/vim/vim/commit/2a585c85013be22f59f184d49612074fd9b115d7
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_put.vim | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_put.vim b/src/nvim/testdir/test_put.vim index 65232175c6..ffdaa81e0b 100644 --- a/src/nvim/testdir/test_put.vim +++ b/src/nvim/testdir/test_put.vim @@ -203,3 +203,15 @@ func Test_multibyte_op_end_mark() call assert_equal([0, 2, 7, 0], getpos("']")) bwipe! endfunc + +" this was putting a mark before the start of a line +func Test_put_empty_register() + new + norm yy + norm [Pi00ggv)s0 + sil! norm [P + bwipe! +endfunc + + +" vim: shiftwidth=2 sts=2 expandtab |