components/vim/vim72-patches/7.2.284
changeset 198 172fc01ce997
equal deleted inserted replaced
197:fd801ec0737c 198:172fc01ce997
       
     1 To: [email protected]
       
     2 Subject: Patch 7.2.284
       
     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.284
       
    11 Problem:    When editing the same buffer in two windows, one with folding,
       
    12 	    display may be wrong after changes.
       
    13 Solution:   Call set_topline() to take care of side effects. (Lech Lorens)
       
    14 Files:	    src/misc1.c
       
    15 
       
    16 
       
    17 *** ../vim-7.2.283/src/misc1.c	2009-07-22 11:03:38.000000000 +0200
       
    18 --- src/misc1.c	2009-11-03 18:38:15.000000000 +0100
       
    19 ***************
       
    20 *** 2886,2891 ****
       
    21 --- 2886,2898 ----
       
    22   		    }
       
    23   #endif
       
    24   		}
       
    25 + 
       
    26 + #ifdef FEAT_FOLDING
       
    27 + 	    /* Take care of side effects for setting w_topline when folds have
       
    28 + 	     * changed.  Esp. when the buffer was changed in another window. */
       
    29 + 	    if (hasAnyFolding(wp))
       
    30 + 		set_topline(wp, wp->w_topline);
       
    31 + #endif
       
    32   	}
       
    33       }
       
    34   
       
    35 *** ../vim-7.2.283/src/version.c	2009-11-03 18:13:36.000000000 +0100
       
    36 --- src/version.c	2009-11-03 18:44:12.000000000 +0100
       
    37 ***************
       
    38 *** 678,679 ****
       
    39 --- 678,681 ----
       
    40   {   /* Add new patch number below this line */
       
    41 + /**/
       
    42 +     284,
       
    43   /**/
       
    44 
       
    45 -- 
       
    46 Men may not be seen publicly in any kind of strapless gown.
       
    47 		[real standing law in Florida, United States of America]
       
    48 
       
    49  /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
       
    50 ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
       
    51 \\\        download, build and distribute -- http://www.A-A-P.org        ///
       
    52  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///