components/vim/vim72-patches/7.2.064
changeset 198 172fc01ce997
equal deleted inserted replaced
197:fd801ec0737c 198:172fc01ce997
       
     1 To: [email protected]
       
     2 Subject: Patch 7.2.064
       
     3 Fcc: outbox
       
     4 From: Bram Moolenaar <[email protected]>
       
     5 Mime-Version: 1.0
       
     6 Content-Type: text/plain; charset=ISO-8859-1
       
     7 Content-Transfer-Encoding: 8bit
       
     8 ------------
       
     9 
       
    10 Patch 7.2.064
       
    11 Problem:    Screen update bug when repeating "~" on a Visual block and the
       
    12 	    last line doesn't change.
       
    13 Solution:   Keep track of changes for all lines.  (Moritz Orbach)
       
    14 Files:	    src/ops.c
       
    15 
       
    16 
       
    17 *** ../vim-7.2.063/src/ops.c	Tue Jun 24 23:59:55 2008
       
    18 --- src/ops.c	Wed Dec  3 13:12:06 2008
       
    19 ***************
       
    20 *** 2209,2220 ****
       
    21       {
       
    22   	for (; pos.lnum <= oap->end.lnum; ++pos.lnum)
       
    23   	{
       
    24   	    block_prep(oap, &bd, pos.lnum, FALSE);
       
    25   	    pos.col = bd.textcol;
       
    26 ! 	    did_change = swapchars(oap->op_type, &pos, bd.textlen);
       
    27   
       
    28   # ifdef FEAT_NETBEANS_INTG
       
    29 ! 	    if (usingNetbeans && did_change)
       
    30   	    {
       
    31   		char_u *ptr = ml_get_buf(curbuf, pos.lnum, FALSE);
       
    32   
       
    33 --- 2209,2223 ----
       
    34       {
       
    35   	for (; pos.lnum <= oap->end.lnum; ++pos.lnum)
       
    36   	{
       
    37 + 	    int one_change;
       
    38 + 
       
    39   	    block_prep(oap, &bd, pos.lnum, FALSE);
       
    40   	    pos.col = bd.textcol;
       
    41 ! 	    one_change = swapchars(oap->op_type, &pos, bd.textlen);
       
    42 ! 	    did_change |= one_change;
       
    43   
       
    44   # ifdef FEAT_NETBEANS_INTG
       
    45 ! 	    if (usingNetbeans && one_change)
       
    46   	    {
       
    47   		char_u *ptr = ml_get_buf(curbuf, pos.lnum, FALSE);
       
    48   
       
    49 *** ../vim-7.2.063/src/version.c	Wed Dec  3 13:18:16 2008
       
    50 --- src/version.c	Wed Dec  3 13:14:46 2008
       
    51 ***************
       
    52 *** 678,679 ****
       
    53 --- 678,681 ----
       
    54   {   /* Add new patch number below this line */
       
    55 + /**/
       
    56 +     64,
       
    57   /**/
       
    58 
       
    59 -- 
       
    60 Q:   How many hardware engineers does it take to change a lightbulb?
       
    61 A:   None.  We'll fix it in software.
       
    62 
       
    63  /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
       
    64 ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
       
    65 \\\        download, build and distribute -- http://www.A-A-P.org        ///
       
    66  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///