Merge pull request #17166 from Shougo/vim-8.2.4160

vim-patch:8.2.4160: cannot change the register used for Select mode d…
This commit is contained in:
bfredl
2022-01-27 08:52:08 +01:00
committed by GitHub
5 changed files with 91 additions and 5 deletions

View File

@@ -1435,6 +1435,11 @@ int op_delete(oparg_T *oap)
return FAIL;
}
if (VIsual_select && oap->is_VIsual) {
// Use the register given with CTRL_R, defaults to zero
oap->regname = VIsual_select_reg;
}
mb_adjust_opend(oap);
/*