mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
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)
This commit is contained in:
11
src/ops.c
11
src/ops.c
@@ -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 = '-';
|
||||
|
Reference in New Issue
Block a user