From bf9680e441f09a6b90ad3185154474442d363a55 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 2 Dec 2010 21:43:16 +0100 Subject: updated for version 7.3.074 Problem: Can't use the "+ register like "* for yank and put. Solution: Add "unnamedplus" to the 'clipboard' option. (Ivan Krasilnikov) --- src/option.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/option.c') diff --git a/src/option.c b/src/option.c index 419ef68ef4..87eadd04fd 100644 --- a/src/option.c +++ b/src/option.c @@ -7307,7 +7307,7 @@ check_stl_option(s) static char_u * check_clipboard_option() { - int new_unnamed = FALSE; + int new_unnamed = 0; int new_autoselect = FALSE; int new_autoselectml = FALSE; int new_html = FALSE; @@ -7319,9 +7319,15 @@ check_clipboard_option() { if (STRNCMP(p, "unnamed", 7) == 0 && (p[7] == ',' || p[7] == NUL)) { - new_unnamed = TRUE; + new_unnamed |= CLIP_UNNAMED; p += 7; } + else if (STRNCMP(p, "unnamedplus", 11) == 0 + && (p[11] == ',' || p[11] == NUL)) + { + new_unnamed |= CLIP_UNNAMED_PLUS; + p += 11; + } else if (STRNCMP(p, "autoselect", 10) == 0 && (p[10] == ',' || p[10] == NUL)) { -- cgit v1.2.3