Mercurial > vim
changeset 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 | 75b0ad7e1118 |
children | 37438facb5eb |
files | src/fileio.c src/version.c |
diffstat | 2 files changed, 5 insertions(+), 0 deletions(-) [+] |
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 */