summaryrefslogtreecommitdiff
path: root/src/fileio.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2007-05-01 21:21:21 +0000
committerBram Moolenaar <Bram@vim.org>2007-05-01 21:21:21 +0000
commiteeefcc7723e89ea4204598132ff4e995378fef5d (patch)
tree85c19316f49080648f25050ebe6af4a0b8486470 /src/fileio.c
parent0ddf0a7df0e3a9e966b25150df772b91f32182f8 (diff)
downloadvim-git-eeefcc7723e89ea4204598132ff4e995378fef5d.tar.gz
updated for version 7.0-239v7.0.239
Diffstat (limited to 'src/fileio.c')
-rw-r--r--src/fileio.c5
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);