updated for version 7.3.761
Problem: In Visual mode a "-p does not work. (Marcin Szamotulski)
Solution: Avoid writing to "- before putting it. (Christian Brabandt)
diff --git a/src/normal.c b/src/normal.c
index 869ada3..4d0bbdb 100644
--- a/src/normal.c
+++ b/src/normal.c
@@ -9412,14 +9412,15 @@
# ifdef FEAT_CLIPBOARD
adjust_clip_reg(®name);
# endif
- if (regname == 0 || regname == '"' || VIM_ISDIGIT(regname)
+ if (regname == 0 || regname == '"'
+ || VIM_ISDIGIT(regname) || regname == '-'
# ifdef FEAT_CLIPBOARD
|| (clip_unnamed && (regname == '*' || regname == '+'))
# endif
)
{
- /* the delete is going to overwrite the register we want to
+ /* The delete is going to overwrite the register we want to
* put, save it first. */
reg1 = get_register(regname, TRUE);
}