4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: Folds messed up in other tab page. (Vlad Irnov)
12 Solution: Instead of going over all windows in current tab page go over all
13 windows in all tab pages. Also free memory for location lists in
14 other tab pages when exiting. (Lech Lorens)
15 Files: src/fileio.c, src/mark.c, src/misc1.c, src/misc2.c
18 *** ../vim-7.2.160/src/fileio.c Wed Mar 18 15:40:03 2009
19 --- src/fileio.c Wed Apr 22 15:46:35 2009
27 /* Update folds unless they are defined manually. */
29 if (wp->w_buffer == curwin->w_buffer
30 && !foldmethodIsManual(wp))
39 /* Update folds unless they are defined manually. */
40 ! FOR_ALL_TAB_WINDOWS(tp, wp)
41 if (wp->w_buffer == curwin->w_buffer
42 && !foldmethodIsManual(wp))
44 *** ../vim-7.2.160/src/mark.c Sun Nov 9 13:43:25 2008
45 --- src/mark.c Wed Apr 22 17:32:29 2009
49 int fnum = curbuf->b_fnum;
56 if (line2 < line1 && amount_after == 0L) /* nothing to do */
61 qf_mark_adjust(NULL, line1, line2, amount, amount_after);
63 ! FOR_ALL_WINDOWS(win)
64 qf_mark_adjust(win, line1, line2, amount, amount_after);
69 qf_mark_adjust(NULL, line1, line2, amount, amount_after);
71 ! FOR_ALL_TAB_WINDOWS(tab, win)
72 qf_mark_adjust(win, line1, line2, amount, amount_after);
78 * Adjust items in all windows related to the current buffer.
80 ! FOR_ALL_WINDOWS(win)
83 if (!cmdmod.lockmarks)
86 * Adjust items in all windows related to the current buffer.
88 ! FOR_ALL_TAB_WINDOWS(tab, win)
91 if (!cmdmod.lockmarks)
92 *** ../vim-7.2.160/src/misc1.c Wed Mar 18 15:40:03 2009
93 --- src/misc1.c Wed Apr 22 17:32:46 2009
100 + #ifdef FEAT_WINDOWS
108 curbuf->b_changelistlen = JUMPLISTSIZE - 1;
109 mch_memmove(curbuf->b_changelist, curbuf->b_changelist + 1,
110 sizeof(pos_T) * (JUMPLISTSIZE - 1));
111 ! FOR_ALL_WINDOWS(wp)
113 /* Correct position in changelist for other windows on
116 curbuf->b_changelistlen = JUMPLISTSIZE - 1;
117 mch_memmove(curbuf->b_changelist, curbuf->b_changelist + 1,
118 sizeof(pos_T) * (JUMPLISTSIZE - 1));
119 ! FOR_ALL_TAB_WINDOWS(tp, wp)
121 /* Correct position in changelist for other windows on
125 --wp->w_changelistidx;
128 ! FOR_ALL_WINDOWS(wp)
130 /* For other windows, if the position in the changelist is
131 * at the end it stays at the end. */
133 --wp->w_changelistidx;
136 ! FOR_ALL_TAB_WINDOWS(tp, wp)
138 /* For other windows, if the position in the changelist is
139 * at the end it stays at the end. */
145 ! FOR_ALL_WINDOWS(wp)
147 if (wp->w_buffer == curbuf)
153 ! FOR_ALL_TAB_WINDOWS(tp, wp)
155 if (wp->w_buffer == curbuf)
157 *** ../vim-7.2.160/src/misc2.c Wed Mar 11 17:27:46 2009
158 --- src/misc2.c Wed Apr 22 15:46:35 2009
167 /* Free all location lists */
168 ! FOR_ALL_WINDOWS(win)
180 /* Free all location lists */
181 ! FOR_ALL_TAB_WINDOWS(tab, win)
185 *** ../vim-7.2.160/src/version.c Wed Apr 22 18:43:06 2009
186 --- src/version.c Wed Apr 29 10:59:01 2009
190 { /* Add new patch number below this line */
196 CONCORDE: Quickly, sir, come this way!
197 LAUNCELOT: No! It's not right for my idiom. I must escape more ... more ...
198 CONCORDE: Dramatically, sir?
199 LAUNCELOT: Dramatically.
200 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
202 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
203 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
204 \\\ download, build and distribute -- http://www.A-A-P.org ///
205 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///