astepano / rpms / vim

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