summaryrefslogtreecommitdiff
path: root/src/eval.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2005-03-18 20:30:32 +0000
committerBram Moolenaar <Bram@vim.org>2005-03-18 20:30:32 +0000
commitc07611362afabee87ab8bb034e94694f502eec14 (patch)
tree27b7d49c43b5d7b5ad66a76ccd850d186fa5a334 /src/eval.c
parent5409c051a5fcf725790478d9b3e8b4ac2fbbe17d (diff)
downloadvim-c07611362afabee87ab8bb034e94694f502eec14.zip
updated for version 7.0061
Diffstat (limited to 'src/eval.c')
-rw-r--r--src/eval.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/eval.c b/src/eval.c
index 52d0a14ff..dd135afba 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -9042,14 +9042,17 @@ f_getwinvar(argvars, rettv)
{
if (*varname == '&') /* window-local-option */
{
- /* set curwin to be our win, temporarily */
+ /* Set curwin to be our win, temporarily. Also set curbuf, so
+ * that we can get buffer-local options. */
oldcurwin = curwin;
curwin = win;
+ curbuf = win->w_buffer;
get_option_tv(&varname, rettv, 1);
/* restore previous notion of curwin */
curwin = oldcurwin;
+ curbuf = curwin->w_buffer;
}
else
{