Karsten Hopp 56e951
To: vim-dev@vim.org
Karsten Hopp 56e951
Subject: Patch 7.0.136
Karsten Hopp 56e951
Fcc: outbox
Karsten Hopp 56e951
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 56e951
Mime-Version: 1.0
Karsten Hopp 56e951
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp 56e951
Content-Transfer-Encoding: 8bit
Karsten Hopp 56e951
------------
Karsten Hopp 56e951
Karsten Hopp 56e951
Patch 7.0.136
Karsten Hopp 56e951
Problem:    Using "O" while matching parens are highlighted may not remove the
Karsten Hopp 56e951
	    highlighting. (Ilya Bobir)
Karsten Hopp 56e951
Solution:   Also trigger CursorMoved when a line is inserted under the cursor.
Karsten Hopp 56e951
Files:	    src/misc1.c
Karsten Hopp 56e951
Karsten Hopp 56e951
Karsten Hopp 56e951
*** ../vim-7.0.135/src/misc1.c	Fri Sep 15 20:17:49 2006
Karsten Hopp 56e951
--- src/misc1.c	Tue Oct 17 11:11:42 2006
Karsten Hopp 56e951
***************
Karsten Hopp 56e951
*** 2842,2848 ****
Karsten Hopp 56e951
  
Karsten Hopp 56e951
  #ifdef FEAT_AUTOCMD
Karsten Hopp 56e951
      /* when the cursor line is changed always trigger CursorMoved */
Karsten Hopp 56e951
!     if (lnum <= curwin->w_cursor.lnum && lnume > curwin->w_cursor.lnum)
Karsten Hopp 56e951
  	last_cursormoved.lnum = 0;
Karsten Hopp 56e951
  #endif
Karsten Hopp 56e951
  }
Karsten Hopp 56e951
--- 2842,2849 ----
Karsten Hopp 56e951
  
Karsten Hopp 56e951
  #ifdef FEAT_AUTOCMD
Karsten Hopp 56e951
      /* when the cursor line is changed always trigger CursorMoved */
Karsten Hopp 56e951
!     if (lnum <= curwin->w_cursor.lnum
Karsten Hopp 56e951
! 		 && lnume + (xtra < 0 ? -xtra : xtra) > curwin->w_cursor.lnum)
Karsten Hopp 56e951
  	last_cursormoved.lnum = 0;
Karsten Hopp 56e951
  #endif
Karsten Hopp 56e951
  }
Karsten Hopp 56e951
*** ../vim-7.0.135/src/version.c	Sun Oct 15 22:38:41 2006
Karsten Hopp 56e951
--- src/version.c	Tue Oct 17 11:10:21 2006
Karsten Hopp 56e951
***************
Karsten Hopp 56e951
*** 668,669 ****
Karsten Hopp 56e951
--- 668,671 ----
Karsten Hopp 56e951
  {   /* Add new patch number below this line */
Karsten Hopp 56e951
+ /**/
Karsten Hopp 56e951
+     136,
Karsten Hopp 56e951
  /**/
Karsten Hopp 56e951
Karsten Hopp 56e951
-- 
Karsten Hopp 56e951
hundred-and-one symptoms of being an internet addict:
Karsten Hopp 56e951
46. Your wife makes a new rule: "The computer cannot come to bed."
Karsten Hopp 56e951
Karsten Hopp 56e951
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 56e951
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 56e951
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp 56e951
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///