2eaf77c
To: vim-dev@vim.org
2eaf77c
Subject: Patch 7.2.064
2eaf77c
Fcc: outbox
2eaf77c
From: Bram Moolenaar <Bram@moolenaar.net>
2eaf77c
Mime-Version: 1.0
2eaf77c
Content-Type: text/plain; charset=ISO-8859-1
2eaf77c
Content-Transfer-Encoding: 8bit
2eaf77c
------------
2eaf77c
2eaf77c
Patch 7.2.064
2eaf77c
Problem:    Screen update bug when repeating "~" on a Visual block and the
2eaf77c
	    last line doesn't change.
2eaf77c
Solution:   Keep track of changes for all lines.  (Moritz Orbach)
2eaf77c
Files:	    src/ops.c
2eaf77c
2eaf77c
2eaf77c
*** ../vim-7.2.063/src/ops.c	Tue Jun 24 23:59:55 2008
2eaf77c
--- src/ops.c	Wed Dec  3 13:12:06 2008
2eaf77c
***************
2eaf77c
*** 2209,2220 ****
2eaf77c
      {
2eaf77c
  	for (; pos.lnum <= oap->end.lnum; ++pos.lnum)
2eaf77c
  	{
2eaf77c
  	    block_prep(oap, &bd, pos.lnum, FALSE);
2eaf77c
  	    pos.col = bd.textcol;
2eaf77c
! 	    did_change = swapchars(oap->op_type, &pos, bd.textlen);
2eaf77c
  
2eaf77c
  # ifdef FEAT_NETBEANS_INTG
2eaf77c
! 	    if (usingNetbeans && did_change)
2eaf77c
  	    {
2eaf77c
  		char_u *ptr = ml_get_buf(curbuf, pos.lnum, FALSE);
2eaf77c
  
2eaf77c
--- 2209,2223 ----
2eaf77c
      {
2eaf77c
  	for (; pos.lnum <= oap->end.lnum; ++pos.lnum)
2eaf77c
  	{
2eaf77c
+ 	    int one_change;
2eaf77c
+ 
2eaf77c
  	    block_prep(oap, &bd, pos.lnum, FALSE);
2eaf77c
  	    pos.col = bd.textcol;
2eaf77c
! 	    one_change = swapchars(oap->op_type, &pos, bd.textlen);
2eaf77c
! 	    did_change |= one_change;
2eaf77c
  
2eaf77c
  # ifdef FEAT_NETBEANS_INTG
2eaf77c
! 	    if (usingNetbeans && one_change)
2eaf77c
  	    {
2eaf77c
  		char_u *ptr = ml_get_buf(curbuf, pos.lnum, FALSE);
2eaf77c
  
2eaf77c
*** ../vim-7.2.063/src/version.c	Wed Dec  3 13:18:16 2008
2eaf77c
--- src/version.c	Wed Dec  3 13:14:46 2008
2eaf77c
***************
2eaf77c
*** 678,679 ****
2eaf77c
--- 678,681 ----
2eaf77c
  {   /* Add new patch number below this line */
2eaf77c
+ /**/
2eaf77c
+     64,
2eaf77c
  /**/
2eaf77c
2eaf77c
-- 
2eaf77c
Q:   How many hardware engineers does it take to change a lightbulb?
2eaf77c
A:   None.  We'll fix it in software.
2eaf77c
2eaf77c
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
2eaf77c
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
2eaf77c
\\\        download, build and distribute -- http://www.A-A-P.org        ///
2eaf77c
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///