4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: Vim tries to set the background or foreground color in a terminal
12 to -1. (Graywh) Happens with ":hi Normal ctermbg=NONE".
13 Solution: When resetting the foreground or background color don't set the
14 color, let the clear screen code do that.
18 *** ../vim-7.2.417/src/syntax.c 2010-03-23 14:39:07.000000000 +0100
19 --- src/syntax.c 2010-05-13 15:34:27.000000000 +0200
25 ! /* Add one to the argument, to avoid zero */
28 HL_TABLE()[idx].sg_cterm_fg = color + 1;
33 ! /* Add one to the argument, to avoid zero. Zero is used for
34 ! * "NONE", then "color" is -1. */
37 HL_TABLE()[idx].sg_cterm_fg = color + 1;
51 ! if (termcap_active && color >= 0)
61 ! term_bg_color(color);
63 ! i = (color == 0 || color == 4);
65 ! i = (color < 7 || color == 8);
66 ! /* Set the 'background' option if the value is wrong. */
67 ! if (i != (*p_bg == 'd'))
68 ! set_option_value((char_u *)"bg", 0L,
69 ! i ? (char_u *)"dark" : (char_u *)"light", 0);
80 ! term_bg_color(color);
82 ! i = (color == 0 || color == 4);
84 ! i = (color < 7 || color == 8);
85 ! /* Set the 'background' option if the value is
87 ! if (i != (*p_bg == 'd'))
88 ! set_option_value((char_u *)"bg", 0L,
89 ! i ? (char_u *)"dark"
90 ! : (char_u *)"light", 0);
95 *** ../vim-7.2.417/src/version.c 2010-05-13 13:12:01.000000000 +0200
96 --- src/version.c 2010-05-13 14:29:59.000000000 +0200
100 { /* Add new patch number below this line */
106 hundred-and-one symptoms of being an internet addict:
107 30. Even though you died last week, you've managed to retain OPS on your
108 favorite IRC channel.
110 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
111 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
112 \\\ download, build and distribute -- http://www.A-A-P.org ///
113 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///