vim-patch:8.2.2189: cannot repeat a command that uses the small delete register

Problem:    Cannot repeat a command that uses the small delete register.
Solution:   Store the register name instead of the contents. (Christian
            Brabandt, closes vim/vim#7527)
032a2d050b

N/A patches for version.c:

vim-patch:8.2.2192: Codecov on github actions fails

Problem:    Codecov on github actions fails.
Solution:   Revert to codecov script. (Ozaki Kiichi, closes vim/vim#7529)
e5492609b3
This commit is contained in:
Jan Edmund Lazo 2020-12-22 18:11:59 -05:00
parent 0561243771
commit b602fe74b0
No known key found for this signature in database
GPG Key ID: 64915E6E9F735B15
2 changed files with 18 additions and 1 deletions

View File

@ -1197,7 +1197,13 @@ int insert_reg(
retval = FAIL;
} else {
for (size_t i = 0; i < reg->y_size; i++) {
stuffescaped((const char *)reg->y_array[i], literally);
if (regname == '-') {
AppendCharToRedobuff(Ctrl_R);
AppendCharToRedobuff(regname);
do_put(regname, NULL, BACKWARD, 1L, PUT_CURSEND);
} else {
stuffescaped((const char *)reg->y_array[i], literally);
}
// Insert a newline between lines and after last line if
// y_type is kMTLineWise.
if (reg->y_type == kMTLineWise || i < reg->y_size - 1) {

View File

@ -254,4 +254,15 @@ func Test_ve_blockpaste()
bwipe!
endfunc
func Test_insert_small_delete()
new
call setline(1, ['foo foobar bar'])
call cursor(1,1)
exe ":norm! ciw'\<C-R>-'"
call assert_equal(getline(1), "'foo' foobar bar")
exe ":norm! w.w."
call assert_equal(getline(1), "'foo' 'foobar' 'bar'")
bwipe!
endfunc
" vim: shiftwidth=2 sts=2 expandtab