diff src/fileio.c @ 4071:8819ea6dcb72 v7.3.790

updated for version 7.3.790 Problem: After reloading a buffer the modelines are not processed. Solution: call do_modelines(). (Ken Takata)
author Bram Moolenaar <bram@vim.org>
date Wed, 30 Jan 2013 14:13:56 +0100
parents c83cd3d01128
children 0fcb050fd79d
line wrap: on
line diff
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -7243,6 +7243,9 @@ buf_reload(buf, orig_mode)
 	 * reset it, might have had a read error. */
 	if (orig_mode == curbuf->b_orig_mode)
 	    curbuf->b_p_ro |= old_ro;
+
+	/* Modelines must override settings done by autocommands. */
+	do_modelines(0);
     }
 
     /* restore curwin/curbuf and a few other things */