Karsten Hopp ef8c96
To: vim-dev@vim.org
Karsten Hopp ef8c96
Subject: Patch 7.1.297
Karsten Hopp ef8c96
Fcc: outbox
Karsten Hopp ef8c96
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp ef8c96
Mime-Version: 1.0
Karsten Hopp ef8c96
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp ef8c96
Content-Transfer-Encoding: 8bit
Karsten Hopp ef8c96
------------
Karsten Hopp ef8c96
Karsten Hopp ef8c96
Patch 7.1.297
Karsten Hopp ef8c96
Problem:    When using the search/replace dialog the parenmatch highlighting
Karsten Hopp ef8c96
	    can be wrong. (Tim Duncan)
Karsten Hopp ef8c96
Solution:   In the GUI redraw function invoke the CursorMoved autocmd.
Karsten Hopp ef8c96
Files:	    src/gui.c
Karsten Hopp ef8c96
Karsten Hopp ef8c96
Karsten Hopp ef8c96
*** ../vim-7.1.296/src/gui.c	Wed Feb  6 17:33:19 2008
Karsten Hopp ef8c96
--- src/gui.c	Wed May  7 21:36:58 2008
Karsten Hopp ef8c96
***************
Karsten Hopp ef8c96
*** 4855,4860 ****
Karsten Hopp ef8c96
--- 4855,4869 ----
Karsten Hopp ef8c96
  {
Karsten Hopp ef8c96
      update_topline();
Karsten Hopp ef8c96
      validate_cursor();
Karsten Hopp ef8c96
+ #ifdef FEAT_AUTOCMD
Karsten Hopp ef8c96
+     /* Trigger CursorMoved if the cursor moved. */
Karsten Hopp ef8c96
+     if (!finish_op && has_cursormoved()
Karsten Hopp ef8c96
+ 	    && !equalpos(last_cursormoved, curwin->w_cursor))
Karsten Hopp ef8c96
+     {
Karsten Hopp ef8c96
+ 	apply_autocmds(EVENT_CURSORMOVED, NULL, NULL, FALSE, curbuf);
Karsten Hopp ef8c96
+ 	last_cursormoved = curwin->w_cursor;
Karsten Hopp ef8c96
+     }
Karsten Hopp ef8c96
+ #endif
Karsten Hopp ef8c96
      update_screen(0);	/* may need to update the screen */
Karsten Hopp ef8c96
      setcursor();
Karsten Hopp ef8c96
      out_flush();		/* make sure output has been written */
Karsten Hopp ef8c96
*** ../vim-7.1.296/src/version.c	Wed May  7 19:05:55 2008
Karsten Hopp ef8c96
--- src/version.c	Wed May  7 21:44:28 2008
Karsten Hopp ef8c96
***************
Karsten Hopp ef8c96
*** 668,669 ****
Karsten Hopp ef8c96
--- 673,676 ----
Karsten Hopp ef8c96
  {   /* Add new patch number below this line */
Karsten Hopp ef8c96
+ /**/
Karsten Hopp ef8c96
+     297,
Karsten Hopp ef8c96
  /**/
Karsten Hopp ef8c96
Karsten Hopp ef8c96
-- 
Karsten Hopp ef8c96
ARTHUR: Did you say shrubberies?
Karsten Hopp ef8c96
ROGER:  Yes.  Shrubberies are my trade.  I am a shrubber.  My name is Roger
Karsten Hopp ef8c96
        the Shrubber.  I arrange, design, and sell shrubberies.
Karsten Hopp ef8c96
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
Karsten Hopp ef8c96
Karsten Hopp ef8c96
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp ef8c96
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp ef8c96
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp ef8c96
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///