diff options
Diffstat (limited to 'src/nvim/ops.c')
| -rw-r--r-- | src/nvim/ops.c | 5 | 
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nvim/ops.c b/src/nvim/ops.c index 1a12cb636a..497d756cdd 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);    /*  | 
