updated for version 7.3.186
Problem: When 'clipboard' contains "unnamed" or "unnamedplus" the value of
v:register is wrong for operators without a specific register.
Solution: Adjust the register according to 'clipboard'. (Ingo Karkat)
diff --git a/src/normal.c b/src/normal.c
index fe30667..d8f9415 100644
--- a/src/normal.c
+++ b/src/normal.c
@@ -1202,7 +1202,13 @@
{
clearop(oap);
#ifdef FEAT_EVAL
- set_reg_var('"');
+ {
+ int regname = 0;
+ /* Adjust the register according to 'clipboard', so that when
+ * "unnamed" is present it becomes '*' or '+' instead of '"'. */
+ adjust_clip_reg(®name);
+ set_reg_var(regname);
+ }
#endif
}