diff options
author | Bram Moolenaar <Bram@vim.org> | 2012-12-12 18:20:32 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2012-12-12 18:20:32 +0100 |
commit | ba6e85855634a16481e0fe7dd7ba9adf2ede201a (patch) | |
tree | 4949d228dd6d0a834fdc530f93a12577148e67dc /src/normal.c | |
parent | 83dadafdd7967ba2d57b343e24119d6ff17b190c (diff) | |
download | vim-ba6e85855634a16481e0fe7dd7ba9adf2ede201a.zip |
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)
Diffstat (limited to 'src/normal.c')
-rw-r--r-- | src/normal.c | 5 |
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(®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); } |