vim-patch:9.1.1322: small delete register cannot paste multi-line correctly (#33531)

Problem:  small delete register cannot paste multi-line correctly
          (after v8.2.2189)
Solution: caused by 032a2d050b82b146d70d6ff714838ee62c07d8ad, so make
          this logic handle charwise only (phanium)

closes: vim/vim#17151

7e93d4c617
This commit is contained in:
phanium
2025-04-19 08:01:51 +08:00
committed by GitHub
parent c67398d31b
commit dca8b3fede
2 changed files with 15 additions and 6 deletions

View File

@@ -1087,4 +1087,13 @@ func Test_mark_from_yank()
bw!
endfunc
func Test_insert_small_delete_linewise()
new
call setline(1, ['foo'])
call cursor(1, 1)
exe ":norm! \"-cc\<C-R>-"
call assert_equal(['foo', ''], getline(1, '$'))
bwipe!
endfunc
" vim: shiftwidth=2 sts=2 expandtab