4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
10 Patch 7.2.220 (after 7.2.215)
11 Problem: a BufEnter autocommand that changes directory causes problems.
13 Solution: Disable autocommands when opening a hidden buffer in a window.
17 *** ../vim-7.2.219/src/fileio.c 2009-06-24 17:31:27.000000000 +0200
18 --- src/fileio.c 2009-07-01 17:02:46.000000000 +0200
21 win_init_empty(aucmd_win); /* set cursor and topline to safe values */
24 ! /* Split the current window, put the aucmd_win in the upper half. */
25 make_snapshot(SNAP_AUCMD_IDX);
28 (void)win_split_ins(0, WSP_TOP, aucmd_win, 0);
29 (void)win_comp_pos(); /* recompute window positions */
35 win_init_empty(aucmd_win); /* set cursor and topline to safe values */
38 ! /* Split the current window, put the aucmd_win in the upper half.
39 ! * We don't want the BufEnter or WinEnter autocommands. */
41 make_snapshot(SNAP_AUCMD_IDX);
44 (void)win_split_ins(0, WSP_TOP, aucmd_win, 0);
45 (void)win_comp_pos(); /* recompute window positions */
55 /* Find "aucmd_win", it can't be closed, but it may be in another tab
57 if (curwin != aucmd_win)
63 /* Find "aucmd_win", it can't be closed, but it may be in another tab
64 ! * page. Do not trigger autocommands here. */
66 if (curwin != aucmd_win)
72 last_status(FALSE); /* may need to remove last status line */
73 restore_snapshot(SNAP_AUCMD_IDX, FALSE);
74 (void)win_comp_pos(); /* recompute window positions */
77 if (win_valid(aco->save_curwin))
78 curwin = aco->save_curwin;
79 *** ../vim-7.2.219/src/version.c 2009-07-01 16:12:54.000000000 +0200
80 --- src/version.c 2009-07-01 17:10:22.000000000 +0200
84 { /* Add new patch number below this line */
90 Microsoft is to software what McDonalds is to gourmet cooking
92 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
93 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
94 \\\ download, build and distribute -- http://www.A-A-P.org ///
95 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///