Karsten Hopp d33094
To: vim-dev@vim.org
Karsten Hopp d33094
Subject: Patch 7.0.169
Karsten Hopp d33094
Fcc: outbox
Karsten Hopp d33094
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp d33094
Mime-Version: 1.0
Karsten Hopp d33094
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp d33094
Content-Transfer-Encoding: 8bit
Karsten Hopp d33094
------------
Karsten Hopp d33094
Karsten Hopp d33094
Patch 7.0.169
Karsten Hopp d33094
Problem:    With a Visual block selection, with the cursor in the left upper
Karsten Hopp d33094
	    corner, pressing "I" doesn't remove the highlighting. (Guopeng
Karsten Hopp d33094
	    Wen)
Karsten Hopp d33094
Solution:   When checking if redrawing is needed also check if Visual
Karsten Hopp d33094
	    selection is still active.
Karsten Hopp d33094
Files:	    src/screen.c
Karsten Hopp d33094
Karsten Hopp d33094
Karsten Hopp d33094
*** ../vim-7.0.168/src/screen.c	Mon Oct  9 22:11:52 2006
Karsten Hopp d33094
--- src/screen.c	Tue Nov 28 16:11:24 2006
Karsten Hopp d33094
***************
Karsten Hopp d33094
*** 455,460 ****
Karsten Hopp d33094
--- 455,461 ----
Karsten Hopp d33094
  		    && curwin->w_topline == curwin->w_lines[0].wl_lnum)
Karsten Hopp d33094
  #ifdef FEAT_VISUAL
Karsten Hopp d33094
  		|| (type == INVERTED
Karsten Hopp d33094
+ 		    && VIsual_active
Karsten Hopp d33094
  		    && curwin->w_old_cursor_lnum == curwin->w_cursor.lnum
Karsten Hopp d33094
  		    && curwin->w_old_visual_mode == VIsual_mode
Karsten Hopp d33094
  		    && (curwin->w_valid & VALID_VIRTCOL)
Karsten Hopp d33094
*** ../vim-7.0.168/src/version.c	Tue Nov 21 20:57:21 2006
Karsten Hopp d33094
--- src/version.c	Tue Nov 28 16:13:40 2006
Karsten Hopp d33094
***************
Karsten Hopp d33094
*** 668,669 ****
Karsten Hopp d33094
--- 668,671 ----
Karsten Hopp d33094
  {   /* Add new patch number below this line */
Karsten Hopp d33094
+ /**/
Karsten Hopp d33094
+     169,
Karsten Hopp d33094
  /**/
Karsten Hopp d33094
Karsten Hopp d33094
-- 
Karsten Hopp d33094
    [clop clop]
Karsten Hopp d33094
GUARD #1:  Halt!  Who goes there?
Karsten Hopp d33094
ARTHUR:    It is I, Arthur, son of Uther Pendragon, from the castle of
Karsten Hopp d33094
           Camelot.  King of the Britons, defeator of the Saxons, sovereign of
Karsten Hopp d33094
           all England!
Karsten Hopp d33094
GUARD #1:  Pull the other one!
Karsten Hopp d33094
                                  The Quest for the Holy Grail (Monty Python)
Karsten Hopp d33094
Karsten Hopp d33094
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp d33094
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp d33094
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp d33094
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///