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