Karsten Hopp 79007a
To: vim-dev@vim.org
Karsten Hopp 79007a
Subject: Patch 7.2.357
Karsten Hopp 79007a
Fcc: outbox
Karsten Hopp 79007a
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 79007a
Mime-Version: 1.0
Karsten Hopp 79007a
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 79007a
Content-Transfer-Encoding: 8bit
Karsten Hopp 79007a
------------
Karsten Hopp 79007a
Karsten Hopp 79007a
Patch 7.2.357
Karsten Hopp 79007a
Problem:    When changing 'fileformat' from/to "mac" and there is a CR in the
Karsten Hopp 79007a
	    text the display is wrong.
Karsten Hopp 79007a
Solution:   Redraw the text when 'fileformat' is changed. (Ben Schmidt)
Karsten Hopp 79007a
Files:	    src/option.c
Karsten Hopp 79007a
Karsten Hopp 79007a
Karsten Hopp 79007a
*** ../vim-7.2.356/src/option.c	2010-01-27 15:57:17.000000000 +0100
Karsten Hopp 79007a
--- src/option.c	2010-02-11 16:57:19.000000000 +0100
Karsten Hopp 79007a
***************
Karsten Hopp 79007a
*** 5867,5872 ****
Karsten Hopp 79007a
--- 5867,5876 ----
Karsten Hopp 79007a
  #endif
Karsten Hopp 79007a
  	    /* update flag in swap file */
Karsten Hopp 79007a
  	    ml_setflags(curbuf);
Karsten Hopp 79007a
+ 	    /* Redraw needed when switching to/from "mac": a CR in the text
Karsten Hopp 79007a
+ 	     * will be displayed differently. */
Karsten Hopp 79007a
+ 	    if (get_fileformat(curbuf) == EOL_MAC || *oldval == 'm')
Karsten Hopp 79007a
+ 		redraw_curbuf_later(NOT_VALID);
Karsten Hopp 79007a
  	}
Karsten Hopp 79007a
      }
Karsten Hopp 79007a
  
Karsten Hopp 79007a
*** ../vim-7.2.356/src/version.c	2010-02-03 18:14:41.000000000 +0100
Karsten Hopp 79007a
--- src/version.c	2010-02-11 17:01:36.000000000 +0100
Karsten Hopp 79007a
***************
Karsten Hopp 79007a
*** 683,684 ****
Karsten Hopp 79007a
--- 683,686 ----
Karsten Hopp 79007a
  {   /* Add new patch number below this line */
Karsten Hopp 79007a
+ /**/
Karsten Hopp 79007a
+     357,
Karsten Hopp 79007a
  /**/
Karsten Hopp 79007a
Karsten Hopp 79007a
-- 
Karsten Hopp 79007a
From the classified section of a city newspaper:
Karsten Hopp 79007a
Dog for sale: eats anything and is fond of children.
Karsten Hopp 79007a
Karsten Hopp 79007a
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 79007a
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 79007a
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp 79007a
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///