comparison 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
comparison
equal deleted inserted replaced
20720:9160c85995fc 20721:70d561931721
1078 && !oap->op_type 1078 && !oap->op_type
1079 && (idx < 0 || !(nv_cmds[idx].cmd_flags & NV_KEEPREG))) 1079 && (idx < 0 || !(nv_cmds[idx].cmd_flags & NV_KEEPREG)))
1080 { 1080 {
1081 clearop(oap); 1081 clearop(oap);
1082 #ifdef FEAT_EVAL 1082 #ifdef FEAT_EVAL
1083 { 1083 reset_reg_var();
1084 int regname = 0;
1085
1086 // Adjust the register according to 'clipboard', so that when
1087 // "unnamed" is present it becomes '*' or '+' instead of '"'.
1088 # ifdef FEAT_CLIPBOARD
1089 adjust_clip_reg(&regname);
1090 # endif
1091 set_reg_var(regname);
1092 }
1093 #endif 1084 #endif
1094 } 1085 }
1095 1086
1096 // Get the length of mapped chars again after typing a count, second 1087 // Get the length of mapped chars again after typing a count, second
1097 // character or "z333<cr>". 1088 // character or "z333<cr>".