updated for version 7.0015
diff --git a/src/ex_cmds.c b/src/ex_cmds.c
index 2568b19..ee9f1bc 100644
--- a/src/ex_cmds.c
+++ b/src/ex_cmds.c
@@ -3059,6 +3059,11 @@
#ifdef FEAT_AUTOCMD
else
{
+ /* Read the modelines, but only to set window-local options. Any
+ * buffer-local options have already been set and may have been
+ * changed by the user. */
+ do_modelines(TRUE);
+
apply_autocmds_retval(EVENT_BUFENTER, NULL, NULL, FALSE, curbuf,
&retval);
apply_autocmds_retval(EVENT_BUFWINENTER, NULL, NULL, FALSE, curbuf,