]>
Commit | Line | Data |
---|---|---|
48112765 AG |
1 | To: vim-dev@vim.org |
2 | Subject: Patch 6.2.368 | |
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 6.2.368 | |
11 | Problem: When 'autochdir' is set, closing a window doesn't change to the | |
12 | directory of the new current window. (Salman Halim) | |
13 | Solution: Handle 'autochdir' always when a window becomes the current one. | |
14 | Files: src/window.c | |
15 | ||
16 | ||
17 | *** ../vim-6.2.367/src/window.c Sun Feb 15 13:47:16 2004 | |
18 | --- src/window.c Wed Mar 17 09:51:14 2004 | |
19 | *************** | |
20 | *** 2871,2883 **** | |
21 | int undo_sync; | |
22 | { | |
23 | win_enter_ext(wp, undo_sync, FALSE); | |
24 | - #if defined(FEAT_NETBEANS_INTG) || defined(FEAT_SUN_WORKSHOP) | |
25 | - /* Change directories when the acd option is set on and after | |
26 | - * switching windows. */ | |
27 | - if (p_acd && curbuf->b_ffname != NULL | |
28 | - && vim_chdirfile(curbuf->b_ffname) == OK) | |
29 | - shorten_fnames(TRUE); | |
30 | - #endif | |
31 | } | |
32 | ||
33 | /* | |
34 | --- 2871,2876 ---- | |
35 | *************** | |
36 | *** 2994,2999 **** | |
37 | --- 2987,3000 ---- | |
38 | ||
39 | #ifdef FEAT_MOUSE | |
40 | setmouse(); /* in case jumped to/from help buffer */ | |
41 | + #endif | |
42 | + | |
43 | + #if defined(FEAT_NETBEANS_INTG) || defined(FEAT_SUN_WORKSHOP) | |
44 | + /* Change directories when the acd option is set on and after | |
45 | + * switching windows. */ | |
46 | + if (p_acd && curbuf->b_ffname != NULL | |
47 | + && vim_chdirfile(curbuf->b_ffname) == OK) | |
48 | + shorten_fnames(TRUE); | |
49 | #endif | |
50 | } | |
51 | ||
52 | *** ../vim-6.2.367/src/version.c Tue Mar 16 22:48:43 2004 | |
53 | --- src/version.c Wed Mar 17 09:53:43 2004 | |
54 | *************** | |
55 | *** 639,640 **** | |
56 | --- 639,642 ---- | |
57 | { /* Add new patch number below this line */ | |
58 | + /**/ | |
59 | + 368, | |
60 | /**/ | |
61 | ||
62 | -- | |
63 | It is hard to understand how a cemetery raised its burial | |
64 | cost and blamed it on the cost of living. | |
65 | ||
66 | /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ | |
67 | /// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ | |
68 | \\\ Project leader for A-A-P -- http://www.A-A-P.org /// | |
69 | \\\ Buy at Amazon and help AIDS victims -- http://ICCF.nl/click1.html /// |