Mercurial > vim
changeset 8857:df68de6b6f1c v7.4.1716
commit https://github.com/vim/vim/commit/baec5c1768098f9dd867b465aaabfdfb294f10c2
Author: Bram Moolenaar <Bram@vim.org>
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)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 06 Apr 2016 23:15:04 +0200 |
parents | 043efca65aaa |
children | 593b17f02b78 |
files | src/main.c src/version.c |
diffstat | 2 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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. */