# HG changeset patch # User Bram Moolenaar # Date 1359551636 -3600 # Node ID 8819ea6dcb72dcf61fd0d20f8ea1904a7546917f # Parent 75b0ad7e11189a4deb7e52055e9ae0c3808d5b25 updated for version 7.3.790 Problem: After reloading a buffer the modelines are not processed. Solution: call do_modelines(). (Ken Takata) diff --git a/src/fileio.c b/src/fileio.c --- 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 */ diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -726,6 +726,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 790, +/**/ 789, /**/ 788,