4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: getwinvar() obtains a dictionary with window-local variables, but
12 it's always for the current window.
13 Solution: Get the variables of the specified window. (Geoff Reedy)
17 *** ../vim-7.0.123/src/eval.c Tue Oct 3 14:43:31 2006
18 --- src/eval.c Fri Oct 6 21:08:57 2006
22 if (win != NULL && varname != NULL)
24 ! if (*varname == '&') /* window-local-option */
26 ! /* Set curwin to be our win, temporarily. Also set curbuf, so
27 ! * that we can get buffer-local options. */
30 ! curbuf = win->w_buffer;
32 get_option_tv(&varname, rettv, 1);
34 - /* restore previous notion of curwin */
36 - curbuf = curwin->w_buffer;
43 if (win != NULL && varname != NULL)
45 ! /* Set curwin to be our win, temporarily. Also set curbuf, so
46 ! * that we can get buffer-local options. */
49 ! curbuf = win->w_buffer;
51 + if (*varname == '&') /* window-local-option */
52 get_option_tv(&varname, rettv, 1);
60 copy_tv(&v->di_tv, rettv);
63 + /* restore previous notion of curwin */
65 + curbuf = curwin->w_buffer;
69 *** ../vim-7.0.123/src/version.c Tue Oct 10 11:41:44 2006
70 --- src/version.c Tue Oct 10 12:53:15 2006
74 { /* Add new patch number below this line */
80 How To Keep A Healthy Level Of Insanity:
81 14. Put mosquito netting around your work area. Play a tape of jungle
84 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
85 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
86 \\\ download, build and distribute -- http://www.A-A-P.org ///
87 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///