To: vim_dev@googlegroups.com Subject: Patch 7.4b.015 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 7.4b.015 (after 7.4b.008) Problem: Can't compile without the 'acd' feature. Solution: Add #ifdefs. (Kazunobu Kuriyama) Files: src/fileio.c *** ../vim-7.4b.014/src/fileio.c 2013-08-02 17:08:08.000000000 +0200 --- src/fileio.c 2013-08-05 21:58:03.000000000 +0200 *************** *** 8861,8867 **** --- 8861,8869 ---- #ifdef FEAT_WINDOWS int save_ea; #endif + #ifdef FEAT_AUTOCHDIR int save_acd; + #endif /* Find a window that is for the new buffer */ if (buf == curbuf) /* be quick when buf is curbuf */ *************** *** 8927,8940 **** --- 8929,8946 ---- save_ea = p_ea; p_ea = FALSE; + # ifdef FEAT_AUTOCHDIR /* Prevent chdir() call in win_enter_ext(), through do_autochdir(). */ save_acd = p_acd; p_acd = FALSE; + # endif (void)win_split_ins(0, WSP_TOP, aucmd_win, 0); (void)win_comp_pos(); /* recompute window positions */ p_ea = save_ea; + # ifdef FEAT_AUTOCHDIR p_acd = save_acd; + # endif unblock_autocmds(); #endif curwin = aucmd_win; *** ../vim-7.4b.014/src/version.c 2013-08-03 17:31:25.000000000 +0200 --- src/version.c 2013-08-05 22:01:59.000000000 +0200 *************** *** 729,730 **** --- 729,732 ---- { /* Add new patch number below this line */ + /**/ + 15, /**/ -- Q: What is a patch 22? A: A patch you need to include to make it possible to include patches. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///