4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: When inserting a "(", triggering the matchparen plugin, the
12 following highlighting may be messed up.
13 Solution: Before triggering the CursorMovedI autocommands update the display
14 to update the stored syntax stacks for the change.
18 *** ../vim-7.1.220/src/edit.c Wed Jan 9 10:13:24 2008
19 --- src/edit.c Sat Jan 12 16:07:41 2008
27 + /* Need to update the screen first, to make sure syntax
28 + * highlighting is correct after making a change (e.g., inserting
29 + * a "(". The autocommand may also require a redraw, so it's done
30 + * again below, unfortunately. */
31 + if (syntax_present(curbuf) && must_redraw)
34 apply_autocmds(EVENT_CURSORMOVEDI, NULL, NULL, FALSE, curbuf);
35 last_cursormoved = curwin->w_cursor;
37 *** ../vim-7.1.220/src/version.c Sat Jan 12 17:11:25 2008
38 --- src/version.c Sat Jan 12 18:11:22 2008
42 { /* Add new patch number below this line */
49 ARTHUR: The Holy Hand Grenade of Antioch. 'Tis one of the sacred relics
50 Brother Maynard always carries with him.
52 ARTHUR: (shouting) Bring up the Holy Hand Grenade!
53 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
55 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
56 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
57 \\\ download, build and distribute -- http://www.A-A-P.org ///
58 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///