Mercurial > vim
changeset 5043:53c1b30632df v7.3.1265
updated for version 7.3.1265
Problem: Accepting "Vim:" for a modeline causes errors too often.
Solution: Require "Vim:" to be followed by "set".
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Sat, 29 Jun 2013 15:07:22 +0200 |
parents | 9b6743e3120e |
children | 1b455771dad6 |
files | src/buffer.c src/version.c |
diffstat | 2 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/buffer.c +++ b/src/buffer.c @@ -5105,6 +5105,8 @@ chk_modeline(lnum, flags) e = s + 3; vers = getdigits(&e); if (*e == ':' + && (s[0] != 'V' + || STRNCMP(skipwhite(e + 1), "set", 3) == 0) && (s[3] == ':' || (VIM_VERSION_100 >= vers && isdigit(s[3])) || (VIM_VERSION_100 < vers && s[3] == '<')