mirror of
https://github.com/vim/vim
synced 2025-07-16 01:01:58 +00:00
patch 9.1.1322: small delete register cannot paste multi-line correctly
Problem: small delete register cannot paste multi-line correctly
(after v8.2.2189)
Solution: caused by 032a2d050b
, so make
this logic handle charwise only (phanium)
closes: #17151
Signed-off-by: phanium <91544758+phanen@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
aee34ef23e
commit
7e93d4c617
@ -1204,4 +1204,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
|
||||
|
Reference in New Issue
Block a user