Geoff Reedy wrote:

> When calling getwinvar or gettabwinvar with an empty string as the  
> last argument it is supposed to return a dictionary of the values  
> defined in the specified window.  This does not appear to be  
> documented in the help files but it is documented in a comment within  
> getwinvar in eval.c.  The current code does not switch the window  
> before calling find_var_in_ht to get the dictionary so it always  
> returns the dictionary for the current window.  The attached patch  
> switches the notion of curwin for all input instead of just when  
> retrieving a window local option.

Good idea.

One thing was wrong though: "curbuf" was obtained from the wrong window,
since "curwin" is changed after getting "curbuf".  I'll fix that.

-- 
hundred-and-one symptoms of being an internet addict:
13. You refer to going to the bathroom as downloading.

 /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

Reply via email to