| To: vim-dev@vim.org |
| Subject: Patch 7.1.250 |
| Fcc: outbox |
| From: Bram Moolenaar <Bram@moolenaar.net> |
| 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 |
| |
| |
| |
| |
| |
| *** 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 |
| |
| |
| |
| *** 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 /// |