Karsten Hopp 5b5430
To: vim-dev@vim.org
Karsten Hopp 5b5430
Subject: Patch 7.1.221
Karsten Hopp 5b5430
Fcc: outbox
Karsten Hopp 5b5430
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 5b5430
Mime-Version: 1.0
Karsten Hopp 5b5430
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp 5b5430
Content-Transfer-Encoding: 8bit
Karsten Hopp 5b5430
------------
Karsten Hopp 5b5430
Karsten Hopp 5b5430
Patch 7.1.221
Karsten Hopp 5b5430
Problem:    When inserting a "(", triggering the matchparen plugin, the
Karsten Hopp 5b5430
	    following highlighting may be messed up.
Karsten Hopp 5b5430
Solution:   Before triggering the CursorMovedI autocommands update the display
Karsten Hopp 5b5430
	    to update the stored syntax stacks for the change.
Karsten Hopp 5b5430
Files:	    src/edit.c
Karsten Hopp 5b5430
Karsten Hopp 5b5430
Karsten Hopp 5b5430
*** ../vim-7.1.220/src/edit.c	Wed Jan  9 10:13:24 2008
Karsten Hopp 5b5430
--- src/edit.c	Sat Jan 12 16:07:41 2008
Karsten Hopp 5b5430
***************
Karsten Hopp 5b5430
*** 1455,1460 ****
Karsten Hopp 5b5430
--- 1455,1468 ----
Karsten Hopp 5b5430
  # endif
Karsten Hopp 5b5430
  			     )
Karsten Hopp 5b5430
  	{
Karsten Hopp 5b5430
+ # ifdef FEAT_SYN_HL
Karsten Hopp 5b5430
+ 	    /* Need to update the screen first, to make sure syntax
Karsten Hopp 5b5430
+ 	     * highlighting is correct after making a change (e.g., inserting
Karsten Hopp 5b5430
+ 	     * a "(".  The autocommand may also require a redraw, so it's done
Karsten Hopp 5b5430
+ 	     * again below, unfortunately. */
Karsten Hopp 5b5430
+ 	    if (syntax_present(curbuf) && must_redraw)
Karsten Hopp 5b5430
+ 		update_screen(0);
Karsten Hopp 5b5430
+ # endif
Karsten Hopp 5b5430
  	    apply_autocmds(EVENT_CURSORMOVEDI, NULL, NULL, FALSE, curbuf);
Karsten Hopp 5b5430
  	    last_cursormoved = curwin->w_cursor;
Karsten Hopp 5b5430
  	}
Karsten Hopp 5b5430
*** ../vim-7.1.220/src/version.c	Sat Jan 12 17:11:25 2008
Karsten Hopp 5b5430
--- src/version.c	Sat Jan 12 18:11:22 2008
Karsten Hopp 5b5430
***************
Karsten Hopp 5b5430
*** 668,669 ****
Karsten Hopp 5b5430
--- 668,671 ----
Karsten Hopp 5b5430
  {   /* Add new patch number below this line */
Karsten Hopp 5b5430
+ /**/
Karsten Hopp 5b5430
+     221,
Karsten Hopp 5b5430
  /**/
Karsten Hopp 5b5430
Karsten Hopp 5b5430
-- 
Karsten Hopp 5b5430
ROBIN:  The what?
Karsten Hopp 5b5430
ARTHUR: The Holy Hand Grenade of Antioch.  'Tis one of the sacred relics
Karsten Hopp 5b5430
        Brother Maynard always carries with him.
Karsten Hopp 5b5430
ALL:    Yes. Of course.
Karsten Hopp 5b5430
ARTHUR: (shouting) Bring up the Holy Hand Grenade!
Karsten Hopp 5b5430
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
Karsten Hopp 5b5430
Karsten Hopp 5b5430
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 5b5430
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 5b5430
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp 5b5430
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///