]> git.pld-linux.org Git - packages/vim.git/blob - 7.1.221
- updated to 7.1.326
[packages/vim.git] / 7.1.221
1 To: vim-dev@vim.org
2 Subject: Patch 7.1.221
3 Fcc: outbox
4 From: Bram Moolenaar <Bram@moolenaar.net>
5 Mime-Version: 1.0
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
8 ------------
9
10 Patch 7.1.221
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.
15 Files:      src/edit.c
16
17
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
20 ***************
21 *** 1455,1460 ****
22 --- 1455,1468 ----
23   # endif
24                              )
25         {
26 + # ifdef FEAT_SYN_HL
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)
32 +               update_screen(0);
33 + # endif
34             apply_autocmds(EVENT_CURSORMOVEDI, NULL, NULL, FALSE, curbuf);
35             last_cursormoved = curwin->w_cursor;
36         }
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
39 ***************
40 *** 668,669 ****
41 --- 668,671 ----
42   {   /* Add new patch number below this line */
43 + /**/
44 +     221,
45   /**/
46
47 -- 
48 ROBIN:  The what?
49 ARTHUR: The Holy Hand Grenade of Antioch.  'Tis one of the sacred relics
50         Brother Maynard always carries with him.
51 ALL:    Yes. Of course.
52 ARTHUR: (shouting) Bring up the Holy Hand Grenade!
53                  "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
54
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    ///
This page took 0.026104 seconds and 3 git commands to generate.