4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: When 'bomb' is changed the window title is updated to show/hide a
12 "+", but the tab page label isn't. (Patrick Texier)
13 Solution: Set "redraw_tabline" in most places where "need_maketitle" is set.
14 (partly by Lech Lorens)
18 *** ../vim-7.2.102/src/option.c Wed Feb 4 17:27:50 2009
19 --- src/option.c Wed Feb 4 17:40:02 2009
27 + static void redraw_titles __ARGS((void));
30 + * Redraw the window title and/or tab page text later.
32 + static void redraw_titles()
34 + need_maketitle = TRUE;
35 + # ifdef FEAT_WINDOWS
36 + redraw_tabline = TRUE;
42 * Set a string option to a new value (without checking the effect).
43 * The string is copied into allocated memory.
48 /* May show a "+" in the title now. */
49 ! need_maketitle = TRUE;
51 /* Add 'fileencoding' to the swap file. */
56 /* May show a "+" in the title now. */
59 /* Add 'fileencoding' to the swap file. */
66 ! need_maketitle = TRUE;
81 curbuf->b_p_tx = FALSE;
83 ! need_maketitle = TRUE;
85 /* update flag in swap file */
89 curbuf->b_p_tx = FALSE;
93 /* update flag in swap file */
97 curbuf->b_did_warn = FALSE;
100 ! need_maketitle = TRUE;
105 /* when 'modifiable' is changed, redraw the window title */
106 else if ((int *)varp == &curbuf->b_p_ma)
107 ! need_maketitle = TRUE;
108 /* when 'endofline' is changed, redraw the window title */
109 else if ((int *)varp == &curbuf->b_p_eol)
110 ! need_maketitle = TRUE;
112 ! /* when 'bomb' is changed, redraw the window title */
113 else if ((int *)varp == &curbuf->b_p_bomb)
114 ! need_maketitle = TRUE;
118 /* when 'bin' is set also set some other options */
120 curbuf->b_did_warn = FALSE;
128 /* when 'modifiable' is changed, redraw the window title */
129 else if ((int *)varp == &curbuf->b_p_ma)
133 /* when 'endofline' is changed, redraw the window title */
134 else if ((int *)varp == &curbuf->b_p_eol)
139 ! /* when 'bomb' is changed, redraw the window title and tab page text */
140 else if ((int *)varp == &curbuf->b_p_bomb)
147 /* when 'bin' is set also set some other options */
151 set_options_bin(old_value, curbuf->b_p_bin, opt_flags);
153 ! need_maketitle = TRUE;
159 set_options_bin(old_value, curbuf->b_p_bin, opt_flags);
168 save_file_ff(curbuf); /* Buffer is unchanged */
170 ! need_maketitle = TRUE;
173 modified_was_set = value;
176 save_file_ff(curbuf); /* Buffer is unchanged */
181 modified_was_set = value;
187 ! /* 'foldminlevel' */
188 else if (pp == &curwin->w_p_fml)
190 foldUpdateAll(curwin);
195 ! /* 'foldminlines' */
196 else if (pp == &curwin->w_p_fml)
198 foldUpdateAll(curwin);
199 *** ../vim-7.2.102/src/version.c Thu Feb 5 20:47:14 2009
200 --- src/version.c Wed Feb 11 11:32:20 2009
204 { /* Add new patch number below this line */
210 hundred-and-one symptoms of being an internet addict:
211 73. You give your dog used motherboards instead of bones
213 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
214 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
215 \\\ download, build and distribute -- http://www.A-A-P.org ///
216 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///