]>
Commit | Line | Data |
---|---|---|
ad28a8ff AG |
1 | To: vim-dev@vim.org |
2 | Subject: patch 7.1.004 | |
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.004 | |
11 | Problem: Crash when doing ":next directory". (Raphael Finkel) | |
12 | Solution: Do not use "buf", it may be invalid after autocommands. | |
13 | Files: src/ex_cmds.c | |
14 | ||
15 | ||
16 | *** ../vim-7.1.003/src/ex_cmds.c Thu May 10 21:24:24 2007 | |
17 | --- src/ex_cmds.c Mon Jun 18 22:03:56 2007 | |
18 | *************** | |
19 | *** 3367,3373 **** | |
20 | * was in this window (or another window). If not used | |
21 | * before, reset the local window options to the global | |
22 | * values. Also restores old folding stuff. */ | |
23 | ! get_winopts(buf); | |
24 | #ifdef FEAT_SPELL | |
25 | did_get_winopts = TRUE; | |
26 | #endif | |
27 | --- 3367,3373 ---- | |
28 | * was in this window (or another window). If not used | |
29 | * before, reset the local window options to the global | |
30 | * values. Also restores old folding stuff. */ | |
31 | ! get_winopts(curbuf); | |
32 | #ifdef FEAT_SPELL | |
33 | did_get_winopts = TRUE; | |
34 | #endif | |
35 | *************** | |
36 | *** 3649,3656 **** | |
37 | #ifdef FEAT_SPELL | |
38 | /* If the window options were changed may need to set the spell language. | |
39 | * Can only do this after the buffer has been properly setup. */ | |
40 | ! if (did_get_winopts && curwin->w_p_spell && *buf->b_p_spl != NUL) | |
41 | ! did_set_spelllang(buf); | |
42 | #endif | |
43 | ||
44 | if (command == NULL) | |
45 | --- 3649,3656 ---- | |
46 | #ifdef FEAT_SPELL | |
47 | /* If the window options were changed may need to set the spell language. | |
48 | * Can only do this after the buffer has been properly setup. */ | |
49 | ! if (did_get_winopts && curwin->w_p_spell && *curbuf->b_p_spl != NUL) | |
50 | ! did_set_spelllang(curbuf); | |
51 | #endif | |
52 | ||
53 | if (command == NULL) | |
54 | *** ../vim-7.1.003/src/version.c Tue Jun 19 10:09:15 2007 | |
55 | --- src/version.c Tue Jun 19 11:53:34 2007 | |
56 | *************** | |
57 | *** 668,669 **** | |
58 | --- 668,671 ---- | |
59 | { /* Add new patch number below this line */ | |
60 | + /**/ | |
61 | + 4, | |
62 | /**/ | |
63 | ||
64 | -- | |
65 | FIRST HEAD: Oh! quick! get the sword out I want to cut his head off. | |
66 | THIRD HEAD: Oh, cut your own head off. | |
67 | SECOND HEAD: Yes - do us all a favour. | |
68 | "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD | |
69 | ||
70 | /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ | |
71 | /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ | |
72 | \\\ download, build and distribute -- http://www.A-A-P.org /// | |
73 | \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |