# HG changeset patch # User Christian Brabandt # Date 1459977304 -7200 # Node ID df68de6b6f1cc22e70d04872634b5e70be8ab95f # Parent 043efca65aaa43780f7e6eeaef390b90e35541eb commit https://github.com/vim/vim/commit/baec5c1768098f9dd867b465aaabfdfb294f10c2 Author: Bram Moolenaar Date: Wed Apr 6 23:06:23 2016 +0200 patch 7.4.1716 Problem: 'autochdir' doesn't work for the first file. (Rob Hoelz) Solution: Call DO_AUTOCHDIR after startup. (Christian Brabandt, closes https://github.com/vim/vim/issues/704) diff --git a/src/main.c b/src/main.c --- a/src/main.c +++ b/src/main.c @@ -959,6 +959,9 @@ vim_main2(int argc UNUSED, char **argv U no_wait_return = FALSE; starting = 0; + /* 'autochdir' has been postponed */ + DO_AUTOCHDIR + #ifdef FEAT_TERMRESPONSE /* Requesting the termresponse is postponed until here, so that a "-c q" * argument doesn't make it appear in the shell Vim was started from. */ diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -749,6 +749,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1716, +/**/ 1715, /**/ 1714,