aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ops.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-01-27 08:52:08 +0100
committerGitHub <noreply@github.com>2022-01-27 08:52:08 +0100
commit9c4e617064a100856bb06e1dec5be27cf22f78f4 (patch)
treefbfba6517d2222b43617805788c20af113abaf94 /src/nvim/ops.c
parentc4b906f34104019e109919b4537ce8c11205394a (diff)
parentd7ab4e819a89c12b74772217e725c640858a18c6 (diff)
downloadrneovim-9c4e617064a100856bb06e1dec5be27cf22f78f4.tar.gz
rneovim-9c4e617064a100856bb06e1dec5be27cf22f78f4.tar.bz2
rneovim-9c4e617064a100856bb06e1dec5be27cf22f78f4.zip
Merge pull request #17166 from Shougo/vim-8.2.4160
vim-patch:8.2.4160: cannot change the register used for Select mode d…
Diffstat (limited to 'src/nvim/ops.c')
-rw-r--r--src/nvim/ops.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nvim/ops.c b/src/nvim/ops.c
index bcf832d9df..e66935db7e 100644
--- a/src/nvim/ops.c
+++ b/src/nvim/ops.c
@@ -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);
/*