comparison src/option.c @ 2654:2b475ed86e64 v7.3.074

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)
author Bram Moolenaar <bram@vim.org>
date Thu, 02 Dec 2010 21:43:16 +0100
parents b2a7d143abe2
children 862d920800b1
comparison
equal deleted inserted replaced
2653:ac04f392ba48 2654:2b475ed86e64
7305 * Extract the items in the 'clipboard' option and set global values. 7305 * Extract the items in the 'clipboard' option and set global values.
7306 */ 7306 */
7307 static char_u * 7307 static char_u *
7308 check_clipboard_option() 7308 check_clipboard_option()
7309 { 7309 {
7310 int new_unnamed = FALSE; 7310 int new_unnamed = 0;
7311 int new_autoselect = FALSE; 7311 int new_autoselect = FALSE;
7312 int new_autoselectml = FALSE; 7312 int new_autoselectml = FALSE;
7313 int new_html = FALSE; 7313 int new_html = FALSE;
7314 regprog_T *new_exclude_prog = NULL; 7314 regprog_T *new_exclude_prog = NULL;
7315 char_u *errmsg = NULL; 7315 char_u *errmsg = NULL;
7317 7317
7318 for (p = p_cb; *p != NUL; ) 7318 for (p = p_cb; *p != NUL; )
7319 { 7319 {
7320 if (STRNCMP(p, "unnamed", 7) == 0 && (p[7] == ',' || p[7] == NUL)) 7320 if (STRNCMP(p, "unnamed", 7) == 0 && (p[7] == ',' || p[7] == NUL))
7321 { 7321 {
7322 new_unnamed = TRUE; 7322 new_unnamed |= CLIP_UNNAMED;
7323 p += 7; 7323 p += 7;
7324 }
7325 else if (STRNCMP(p, "unnamedplus", 11) == 0
7326 && (p[11] == ',' || p[11] == NUL))
7327 {
7328 new_unnamed |= CLIP_UNNAMED_PLUS;
7329 p += 11;
7324 } 7330 }
7325 else if (STRNCMP(p, "autoselect", 10) == 0 7331 else if (STRNCMP(p, "autoselect", 10) == 0
7326 && (p[10] == ',' || p[10] == NUL)) 7332 && (p[10] == ',' || p[10] == NUL))
7327 { 7333 {
7328 new_autoselect = TRUE; 7334 new_autoselect = TRUE;