4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: When 't_Co' is set to the value it already had the color scheme is
13 Solution: Only load the colorscheme when the t_Co value changes. (Dominique
18 *** ../vim-7.2.143/src/option.c Wed Mar 4 04:11:56 2009
19 --- src/option.c Wed Mar 18 12:00:28 2009
22 /* ":set t_Co=0" and ":set t_Co=1" do ":set t_Co=" */
25 ! t_colors = atoi((char *)T_CCO);
28 ! if (new_value_alloced)
30 ! T_CCO = empty_option;
32 - /* We now have a different color setup, initialize it again. */
33 - init_highlight(TRUE, FALSE);
38 /* ":set t_Co=0" and ":set t_Co=1" do ":set t_Co=" */
41 ! int colors = atoi((char *)T_CCO);
43 ! /* Only reinitialize colors if t_Co value has really changed to
44 ! * avoid expensive reload of colorscheme if t_Co is set to the
45 ! * same value multiple times. */
46 ! if (colors != t_colors)
51 ! if (new_value_alloced)
53 ! T_CCO = empty_option;
55 ! /* We now have a different color setup, initialize it again. */
56 ! init_highlight(TRUE, FALSE);
61 *** ../vim-7.2.143/src/version.c Wed Mar 18 12:50:58 2009
62 --- src/version.c Wed Mar 18 14:16:48 2009
66 { /* Add new patch number below this line */
72 hundred-and-one symptoms of being an internet addict:
73 235. You start naming your kids Pascal, COBOL, Algol and Fortran.
75 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
76 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
77 \\\ download, build and distribute -- http://www.A-A-P.org ///
78 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///