1
0
forked from aniani/vim

patch 8.2.5016: access before start of text with a put command

Problem:    Access before start of text with a put command.
Solution:   Check the length is more than zero.
This commit is contained in:
Bram Moolenaar
2022-05-25 15:15:38 +01:00
parent bf82df0dd4
commit 2a585c8501
3 changed files with 16 additions and 2 deletions

View File

@@ -210,5 +210,14 @@ func Test_multibyte_op_end_mark()
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