Problem: In Visual mode a "-p does not work. (Marcin Szamotulski)
Solution: Avoid writing to "- before putting it. (Christian Brabandt)
# 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);
}
^O\e3li\ 5\e4li\ 5\e4li\ 5 <-- should show the name of a noted text editor\e
^o\e4li\19\e4li\19\e4li\19 <-- and its version number\e-dd
:"
+:" Test for yanking and pasting using the small delete register
+gg/^foo
+dewve"-p
:wq! test.out
ENDTEST
+foo, bar
keyword keyw
all your base are belong to us
1 2 3 4 5 6
+, foo
keyword keyword
all your base
are belong to vim
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 761,
/**/
760,
/**/