| To: vim_dev@googlegroups.com |
| Subject: Patch 7.4.830 |
| Fcc: outbox |
| From: Bram Moolenaar <Bram@moolenaar.net> |
| Mime-Version: 1.0 |
| Content-Type: text/plain; charset=UTF-8 |
| Content-Transfer-Encoding: 8bit |
| |
| |
| Patch 7.4.830 |
| Problem: Resetting 'encoding' when doing ":set all&" causes problems. |
| (Bjorn Linse) Display is not updated. |
| Solution: Do not reset 'encoding'. Do a full redraw. |
| Files: src/option.c |
| |
| |
| |
| |
| |
| *** 3656,3661 **** |
| --- 3656,3662 ---- |
| |
| /* |
| * Set all options (except terminal options) to their default value. |
| + * When "opt_flags" is non-zero skip 'encoding'. |
| */ |
| static void |
| set_options_default(opt_flags) |
| |
| *** 3668,3674 **** |
| #endif |
| |
| for (i = 0; !istermoption(&options[i]); i++) |
| ! if (!(options[i].flags & P_NODEFAULT)) |
| set_option_default(i, opt_flags, p_cp); |
| |
| #ifdef FEAT_WINDOWS |
| --- 3669,3676 ---- |
| #endif |
| |
| for (i = 0; !istermoption(&options[i]); i++) |
| ! if (!(options[i].flags & P_NODEFAULT) |
| ! && (opt_flags == 0 || options[i].var != (char_u *)&p_enc)) |
| set_option_default(i, opt_flags, p_cp); |
| |
| #ifdef FEAT_WINDOWS |
| |
| *** 4204,4209 **** |
| --- 4206,4212 ---- |
| ++arg; |
| /* Only for :set command set global value of local options. */ |
| set_options_default(OPT_FREE | opt_flags); |
| + redraw_all_later(CLEAR); |
| } |
| else |
| { |
| |
| |
| |
| *** 743,744 **** |
| --- 743,746 ---- |
| { /* Add new patch number below this line */ |
| + /**/ |
| + 830, |
| /**/ |
| |
| -- |
| Every exit is an entrance into something else. |
| |
| /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ |
| /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ |
| \\\ an exciting new programming language -- http://www.Zimbu.org /// |
| \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |