clipboard: don't overwrite before pasting in visual mode. #2945

This occured when clipboard=unnamedplus and doing "+p in visual mode.
Fixes #2942.
This commit is contained in:
Björn Linse
2015-07-03 16:02:07 +02:00
parent 0ffd51425e
commit e9c9d44f65
4 changed files with 11 additions and 3 deletions

View File

@@ -318,6 +318,7 @@ static char *(p_cb_values[]) = {"unnamed", "unnamedplus", NULL};
#endif
# define CB_UNNAMED 0x001
# define CB_UNNAMEDPLUS 0x002
# define CB_UNNAMEDMASK (CB_UNNAMED | CB_UNNAMEDPLUS)
EXTERN long p_cwh; /* 'cmdwinheight' */
EXTERN long p_ch; /* 'cmdheight' */
EXTERN int p_confirm; /* 'confirm' */