components/vim/vim72-patches/7.2.357
changeset 198 172fc01ce997
equal deleted inserted replaced
197:fd801ec0737c 198:172fc01ce997
       
     1 To: [email protected]
       
     2 Subject: Patch 7.2.357
       
     3 Fcc: outbox
       
     4 From: Bram Moolenaar <[email protected]>
       
     5 Mime-Version: 1.0
       
     6 Content-Type: text/plain; charset=UTF-8
       
     7 Content-Transfer-Encoding: 8bit
       
     8 ------------
       
     9 
       
    10 Patch 7.2.357
       
    11 Problem:    When changing 'fileformat' from/to "mac" and there is a CR in the
       
    12 	    text the display is wrong.
       
    13 Solution:   Redraw the text when 'fileformat' is changed. (Ben Schmidt)
       
    14 Files:	    src/option.c
       
    15 
       
    16 
       
    17 *** ../vim-7.2.356/src/option.c	2010-01-27 15:57:17.000000000 +0100
       
    18 --- src/option.c	2010-02-11 16:57:19.000000000 +0100
       
    19 ***************
       
    20 *** 5867,5872 ****
       
    21 --- 5867,5876 ----
       
    22   #endif
       
    23   	    /* update flag in swap file */
       
    24   	    ml_setflags(curbuf);
       
    25 + 	    /* Redraw needed when switching to/from "mac": a CR in the text
       
    26 + 	     * will be displayed differently. */
       
    27 + 	    if (get_fileformat(curbuf) == EOL_MAC || *oldval == 'm')
       
    28 + 		redraw_curbuf_later(NOT_VALID);
       
    29   	}
       
    30       }
       
    31   
       
    32 *** ../vim-7.2.356/src/version.c	2010-02-03 18:14:41.000000000 +0100
       
    33 --- src/version.c	2010-02-11 17:01:36.000000000 +0100
       
    34 ***************
       
    35 *** 683,684 ****
       
    36 --- 683,686 ----
       
    37   {   /* Add new patch number below this line */
       
    38 + /**/
       
    39 +     357,
       
    40   /**/
       
    41 
       
    42 -- 
       
    43 From the classified section of a city newspaper:
       
    44 Dog for sale: eats anything and is fond of children.
       
    45 
       
    46  /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
       
    47 ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
       
    48 \\\        download, build and distribute -- http://www.A-A-P.org        ///
       
    49  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///