0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

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)
This commit is contained in:
Bram Moolenaar
2012-12-12 18:20:32 +01:00
parent 83dadafdd7
commit ba6e858556
4 changed files with 10 additions and 2 deletions

View File

@@ -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);
}