]>
Commit | Line | Data |
---|---|---|
d57b4abe ER |
1 | To: vim-dev@vim.org |
2 | Subject: Patch 7.1.218 | |
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.218 | |
11 | Problem: A syntax region without a "keepend", containing a region with | |
12 | "extend" could be truncated at the end of the containing region. | |
13 | Solution: Do not call syn_update_ends() when there are no keepend items. | |
14 | Files: src/syntax.c | |
15 | ||
16 | ||
17 | *** ../vim-7.1.217/src/syntax.c Thu Jan 10 22:23:22 2008 | |
18 | --- src/syntax.c Wed Jan 9 15:17:47 2008 | |
19 | *************** | |
20 | *** 2495,2501 **** | |
21 | if (current_state.ga_len == 0) | |
22 | break; | |
23 | ||
24 | ! if (had_extend) | |
25 | { | |
26 | syn_update_ends(FALSE); | |
27 | if (current_state.ga_len == 0) | |
28 | --- 2493,2499 ---- | |
29 | if (current_state.ga_len == 0) | |
30 | break; | |
31 | ||
32 | ! if (had_extend && keepend_level >= 0) | |
33 | { | |
34 | syn_update_ends(FALSE); | |
35 | if (current_state.ga_len == 0) | |
36 | *** ../vim-7.1.217/src/version.c Fri Jan 11 21:00:49 2008 | |
37 | --- src/version.c Fri Jan 11 21:25:46 2008 | |
38 | *************** | |
39 | *** 668,669 **** | |
40 | --- 668,671 ---- | |
41 | { /* Add new patch number below this line */ | |
42 | + /**/ | |
43 | + 218, | |
44 | /**/ | |
45 | ||
46 | -- | |
47 | The Law of VIM: | |
48 | For each member b of the possible behaviour space B of program P, there exists | |
49 | a finite time t before which at least one user u in the total user space U of | |
50 | program P will request b becomes a member of the allowed behaviour space B' | |
51 | (B' <= B). | |
52 | In other words: Sooner or later everyone wants everything as an option. | |
53 | -- Vince Negri | |
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 /// |