comparison src/fileio.c @ 5278:d96f16667cc4 v7.4b.015

updated for version 7.4b.015 Problem: Can't compile without the 'acd' feature. Solution: Add #ifdefs. (Kazunobu Kuriyama)
author Bram Moolenaar <bram@vim.org>
date Mon, 05 Aug 2013 22:02:20 +0200
parents 3059c799fcd9
children 8b5d80861c5e
comparison
equal deleted inserted replaced
5277:42bf9264e64e 5278:d96f16667cc4
8859 { 8859 {
8860 win_T *win; 8860 win_T *win;
8861 #ifdef FEAT_WINDOWS 8861 #ifdef FEAT_WINDOWS
8862 int save_ea; 8862 int save_ea;
8863 #endif 8863 #endif
8864 #ifdef FEAT_AUTOCHDIR
8864 int save_acd; 8865 int save_acd;
8866 #endif
8865 8867
8866 /* Find a window that is for the new buffer */ 8868 /* Find a window that is for the new buffer */
8867 if (buf == curbuf) /* be quick when buf is curbuf */ 8869 if (buf == curbuf) /* be quick when buf is curbuf */
8868 win = curwin; 8870 win = curwin;
8869 else 8871 else
8925 block_autocmds(); 8927 block_autocmds();
8926 make_snapshot(SNAP_AUCMD_IDX); 8928 make_snapshot(SNAP_AUCMD_IDX);
8927 save_ea = p_ea; 8929 save_ea = p_ea;
8928 p_ea = FALSE; 8930 p_ea = FALSE;
8929 8931
8932 # ifdef FEAT_AUTOCHDIR
8930 /* Prevent chdir() call in win_enter_ext(), through do_autochdir(). */ 8933 /* Prevent chdir() call in win_enter_ext(), through do_autochdir(). */
8931 save_acd = p_acd; 8934 save_acd = p_acd;
8932 p_acd = FALSE; 8935 p_acd = FALSE;
8936 # endif
8933 8937
8934 (void)win_split_ins(0, WSP_TOP, aucmd_win, 0); 8938 (void)win_split_ins(0, WSP_TOP, aucmd_win, 0);
8935 (void)win_comp_pos(); /* recompute window positions */ 8939 (void)win_comp_pos(); /* recompute window positions */
8936 p_ea = save_ea; 8940 p_ea = save_ea;
8941 # ifdef FEAT_AUTOCHDIR
8937 p_acd = save_acd; 8942 p_acd = save_acd;
8943 # endif
8938 unblock_autocmds(); 8944 unblock_autocmds();
8939 #endif 8945 #endif
8940 curwin = aucmd_win; 8946 curwin = aucmd_win;
8941 } 8947 }
8942 curbuf = buf; 8948 curbuf = buf;