diff src/normal.c @ 20721:70d561931721 v8.2.0913

patch 8.2.0913: code for resetting v:register is duplicated Commit: https://github.com/vim/vim/commit/439c036ed062de1c87cc7e3fe050a9569fb12089 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jun 6 15:58:03 2020 +0200 patch 8.2.0913: code for resetting v:register is duplicated Problem: Code for resetting v:register is duplicated. Solution: Add reset_reg_var().
author Bram Moolenaar <Bram@vim.org>
date Sat, 06 Jun 2020 16:00:04 +0200
parents d571231175b4
children e6a5a5ef4034
line wrap: on
line diff
--- a/src/normal.c
+++ b/src/normal.c
@@ -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
     }