]> git.pld-linux.org Git - packages/vim.git/blame - 6.2.326
- updated to 6.2.430
[packages/vim.git] / 6.2.326
CommitLineData
2975f168
AG
1To: vim-dev@vim.org
2Subject: Patch 6.2.326
3Fcc: outbox
4From: Bram Moolenaar <Bram@moolenaar.net>
5Mime-Version: 1.0
6Content-Type: text/plain; charset=ISO-8859-1
7Content-Transfer-Encoding: 8bit
8------------
9
10Patch 6.2.326
11Problem: ":windo set syntax=foo" doesn't work. (Tim Chase)
12Solution: Don't change 'eventignore' for ":windo".
13Files: src/ex_cmds2.c
14
15
16*** ../vim-6.2.325/src/ex_cmds2.c Sun Feb 29 21:06:13 2004
17--- src/ex_cmds2.c Sun Mar 7 19:30:37 2004
18***************
19*** 1581,1587 ****
20 buf_T *buf;
21 int next_fnum = 0;
22 #if defined(FEAT_AUTOCMD) && defined(FEAT_SYN_HL)
23! char_u *save_ei = vim_strsave(p_ei);
24 char_u *new_ei;
25 #endif
26
27--- 1581,1587 ----
28 buf_T *buf;
29 int next_fnum = 0;
30 #if defined(FEAT_AUTOCMD) && defined(FEAT_SYN_HL)
31! char_u *save_ei = NULL;
32 char_u *new_ei;
33 #endif
34
35***************
36*** 1594,1605 ****
37 #endif
38
39 #if defined(FEAT_AUTOCMD) && defined(FEAT_SYN_HL)
40! new_ei = vim_strnsave(p_ei, (int)STRLEN(p_ei) + 8);
41! if (new_ei != NULL)
42 {
43! STRCAT(new_ei, ",Syntax");
44! set_string_option_direct((char_u *)"ei", -1, new_ei, OPT_FREE);
45! vim_free(new_ei);
46 }
47 #endif
48
49--- 1594,1615 ----
50 #endif
51
52 #if defined(FEAT_AUTOCMD) && defined(FEAT_SYN_HL)
53! if (eap->cmdidx != CMD_windo)
54 {
55! /* Add "Syntax" to 'eventignore' to skip loading syntax highlighting
56! * for every buffer loaded into the window. A considerable speed
57! * improvement. */
58! save_ei = vim_strsave(p_ei);
59! if (save_ei != NULL)
60! {
61! new_ei = vim_strnsave(p_ei, (int)STRLEN(p_ei) + 8);
62! if (new_ei != NULL)
63! {
64! STRCAT(new_ei, ",Syntax");
65! set_string_option_direct((char_u *)"ei", -1, new_ei, OPT_FREE);
66! vim_free(new_ei);
67! }
68! }
69 }
70 #endif
71
72***************
73*** 1692,1704 ****
74 }
75
76 #if defined(FEAT_AUTOCMD) && defined(FEAT_SYN_HL)
77! if (new_ei != NULL)
78 {
79 set_string_option_direct((char_u *)"ei", -1, save_ei, OPT_FREE);
80 apply_autocmds(EVENT_SYNTAX, curbuf->b_p_syn,
81! curbuf->b_fname, TRUE, curbuf);
82 }
83- vim_free(save_ei);
84 #endif
85 }
86
87--- 1702,1714 ----
88 }
89
90 #if defined(FEAT_AUTOCMD) && defined(FEAT_SYN_HL)
91! if (save_ei != NULL)
92 {
93 set_string_option_direct((char_u *)"ei", -1, save_ei, OPT_FREE);
94 apply_autocmds(EVENT_SYNTAX, curbuf->b_p_syn,
95! curbuf->b_fname, TRUE, curbuf);
96! vim_free(save_ei);
97 }
98 #endif
99 }
100
101*** ../vim-6.2.325/src/version.c Sun Mar 7 19:33:37 2004
102--- src/version.c Sun Mar 7 19:31:07 2004
103***************
104*** 639,640 ****
105--- 639,642 ----
106 { /* Add new patch number below this line */
107+ /**/
108+ 326,
109 /**/
110
111--
112"I love deadlines. I especially like the whooshing sound they
113make as they go flying by."
114 -- Douglas Adams
115
116 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
117/// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
118\\\ Project leader for A-A-P -- http://www.A-A-P.org ///
119 \\\ Buy at Amazon and help AIDS victims -- http://ICCF.nl/click1.html ///
This page took 0.041511 seconds and 4 git commands to generate.