summaryrefslogtreecommitdiff
path: root/src/normal.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/normal.c')
-rw-r--r--src/normal.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/normal.c b/src/normal.c
index 869ada37a..4d0bbdbea 100644
--- a/src/normal.c
+++ b/src/normal.c
@@ -9412,14 +9412,15 @@ nv_put(cap)
# ifdef FEAT_CLIPBOARD
adjust_clip_reg(&regname);
# 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);
}