Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
4070:75b0ad7e1118 | 4071:8819ea6dcb72 |
---|---|
7241 /* If the mode didn't change and 'readonly' was set, keep the old | 7241 /* If the mode didn't change and 'readonly' was set, keep the old |
7242 * value; the user probably used the ":view" command. But don't | 7242 * value; the user probably used the ":view" command. But don't |
7243 * reset it, might have had a read error. */ | 7243 * reset it, might have had a read error. */ |
7244 if (orig_mode == curbuf->b_orig_mode) | 7244 if (orig_mode == curbuf->b_orig_mode) |
7245 curbuf->b_p_ro |= old_ro; | 7245 curbuf->b_p_ro |= old_ro; |
7246 | |
7247 /* Modelines must override settings done by autocommands. */ | |
7248 do_modelines(0); | |
7246 } | 7249 } |
7247 | 7250 |
7248 /* restore curwin/curbuf and a few other things */ | 7251 /* restore curwin/curbuf and a few other things */ |
7249 aucmd_restbuf(&aco); | 7252 aucmd_restbuf(&aco); |
7250 /* Careful: autocommands may have made "buf" invalid! */ | 7253 /* Careful: autocommands may have made "buf" invalid! */ |