mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 05:28:33 +00:00
vim-patch:8.2.4160: cannot change the register used for Select mode delete
Problem: Cannot change the register used for Select mode delete.
Solution: Make CTRL-R set the register to be used when deleting text for
Select mode. (Shougo Matsushita, closes vim/vim#9531)
4ede01f188
This commit is contained in:
@@ -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);
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user