0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.0913: code for resetting v:register is duplicated

Problem:    Code for resetting v:register is duplicated.
Solution:   Add reset_reg_var().
This commit is contained in:
Bram Moolenaar
2020-06-06 15:58:03 +02:00
parent 11f1ffd182
commit 439c036ed0
5 changed files with 24 additions and 17 deletions

View File

@@ -1080,16 +1080,7 @@ getcount:
{
clearop(oap);
#ifdef FEAT_EVAL
{
int regname = 0;
// Adjust the register according to 'clipboard', so that when
// "unnamed" is present it becomes '*' or '+' instead of '"'.
# ifdef FEAT_CLIPBOARD
adjust_clip_reg(&regname);
# endif
set_reg_var(regname);
}
reset_reg_var();
#endif
}