diff options
author | Bram Moolenaar <Bram@vim.org> | 2007-05-01 21:21:21 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2007-05-01 21:21:21 +0000 |
commit | eeefcc7723e89ea4204598132ff4e995378fef5d (patch) | |
tree | 85c19316f49080648f25050ebe6af4a0b8486470 /src/fileio.c | |
parent | 0ddf0a7df0e3a9e966b25150df772b91f32182f8 (diff) | |
download | vim-git-eeefcc7723e89ea4204598132ff4e995378fef5d.tar.gz |
updated for version 7.0-239v7.0.239
Diffstat (limited to 'src/fileio.c')
-rw-r--r-- | src/fileio.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/fileio.c b/src/fileio.c index 20406bb49..a612c5961 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -8086,7 +8086,10 @@ ex_doautoall(eap) /* execute the autocommands for this buffer */ retval = do_doautocmd(eap->arg, FALSE); - do_modelines(0); + + /* Execute the modeline settings, but don't set window-local + * options if we are using the current window for another buffer. */ + do_modelines(aco.save_curwin == NULL ? OPT_NOWIN : 0); /* restore the current window */ aucmd_restbuf(&aco); |