Mercurial > vim
diff src/fileio.c @ 1113:1df41c98fc2e v7.0.239
updated for version 7.0-239
author | vimboss |
---|---|
date | Tue, 01 May 2007 21:21:21 +0000 |
parents | 17b9587ff6d5 |
children | f0dcee927c1d |
line wrap: on
line diff
--- 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);