From bcb268f1df7442551f06d2df2cff8e7460fd30a0 Mon Sep 17 00:00:00 2001 From: Karsten Hopp Date: Aug 26 2015 09:20:05 +0000 Subject: - patchlevel 830 --- diff --git a/7.4.830 b/7.4.830 new file mode 100644 index 0000000..6b7f1b0 --- /dev/null +++ b/7.4.830 @@ -0,0 +1,73 @@ +To: vim_dev@googlegroups.com +Subject: Patch 7.4.830 +Fcc: outbox +From: Bram Moolenaar +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 + + +*** ../vim-7.4.829/src/option.c 2015-08-11 18:52:58.073121563 +0200 +--- src/option.c 2015-08-25 12:52:02.764997919 +0200 +*************** +*** 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 + { +*** ../vim-7.4.829/src/version.c 2015-08-25 12:21:23.583957205 +0200 +--- src/version.c 2015-08-25 12:50:16.870092540 +0200 +*************** +*** 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 ///