From 8c2633443d2ddf3cfbd0cc8e51c2a2d17f05019f Mon Sep 17 00:00:00 2001 From: Karsten Hopp Date: Feb 25 2008 15:36:40 +0000 Subject: - patchlevel 250 --- diff --git a/7.1.250 b/7.1.250 new file mode 100644 index 0000000..0306206 --- /dev/null +++ b/7.1.250 @@ -0,0 +1,54 @@ +To: vim-dev@vim.org +Subject: Patch 7.1.250 +Fcc: outbox +From: Bram Moolenaar +Mime-Version: 1.0 +Content-Type: text/plain; charset=ISO-8859-1 +Content-Transfer-Encoding: 8bit +------------ + +Patch 7.1.250 +Problem: ":setglobal fenc=anything" gives an error message in a buffer + where 'modifiable' is off. (Ben Schmidt) +Solution: Don't give an error if 'modifiable' doesn't matter. +Files: src/option.c + + +*** ../vim-7.1.249/src/option.c Sat Jan 19 15:55:51 2008 +--- src/option.c Wed Feb 13 18:31:39 2008 +*************** +*** 5671,5677 **** + { + if (gvarp == &p_fenc) + { +! if (!curbuf->b_p_ma) + errmsg = e_modifiable; + else if (vim_strchr(*varp, ',') != NULL) + /* No comma allowed in 'fileencoding'; catches confusing it +--- 5671,5677 ---- + { + if (gvarp == &p_fenc) + { +! if (!curbuf->b_p_ma && opt_flags != OPT_GLOBAL) + errmsg = e_modifiable; + else if (vim_strchr(*varp, ',') != NULL) + /* No comma allowed in 'fileencoding'; catches confusing it +*** ../vim-7.1.249/src/version.c Wed Feb 13 15:20:59 2008 +--- src/version.c Wed Feb 13 18:34:24 2008 +*************** +*** 668,669 **** +--- 668,671 ---- + { /* Add new patch number below this line */ ++ /**/ ++ 250, + /**/ + +-- +How To Keep A Healthy Level Of Insanity: +3. Every time someone asks you to do something, ask if they want fries + with that. + + /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ +/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ +\\\ download, build and distribute -- http://www.A-A-P.org /// + \\\ help me help AIDS victims -- http://ICCF-Holland.org ///