Permalink
Browse files

updated for version 7.3.498

Problem:    The behavior of the "- register changes depending on value of
            the 'clipboard' option. (Szamotulski)
Solution:   Also set the "- register when the register is "*" or "+".
            (Christian Brabandt)
  • Loading branch information...
brammool committed Apr 20, 2012
1 parent b830f0c commit 84298db3a43838da9ca2c7289fbe34428604fec4
Showing with 10 additions and 3 deletions.
  1. +8 −3 src/ops.c
  2. +2 −0 src/version.c
View
@@ -1720,9 +1720,14 @@ op_delete(oap)
did_yank = TRUE;
}
/* Yank into small delete register when no register specified and the
* delete is within one line. */
if (oap->regname == 0 && oap->motion_type != MLINE
/* Yank into small delete register when no named register specified
* and the delete is within one line. */
if ((
#ifdef FEAT_CLIPBOARD
((clip_unnamed & CLIP_UNNAMED) && oap->regname == '*') ||
((clip_unnamed & CLIP_UNNAMED_PLUS) && oap->regname == '+') ||
#endif
oap->regname == 0) && oap->motion_type != MLINE
&& oap->line_count == 1)
{
oap->regname = '-';
View
@@ -714,6 +714,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
498,
/**/
497,
/**/

0 comments on commit 84298db

Please sign in to comment.