Mercurial > vim
comparison src/main.c @ 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 | e770986c855a |
children | ed0b39dd7fd6 |
comparison
equal
deleted
inserted
replaced
8856:043efca65aaa | 8857:df68de6b6f1c |
---|---|
956 | 956 |
957 RedrawingDisabled = 0; | 957 RedrawingDisabled = 0; |
958 redraw_all_later(NOT_VALID); | 958 redraw_all_later(NOT_VALID); |
959 no_wait_return = FALSE; | 959 no_wait_return = FALSE; |
960 starting = 0; | 960 starting = 0; |
961 | |
962 /* 'autochdir' has been postponed */ | |
963 DO_AUTOCHDIR | |
961 | 964 |
962 #ifdef FEAT_TERMRESPONSE | 965 #ifdef FEAT_TERMRESPONSE |
963 /* Requesting the termresponse is postponed until here, so that a "-c q" | 966 /* Requesting the termresponse is postponed until here, so that a "-c q" |
964 * argument doesn't make it appear in the shell Vim was started from. */ | 967 * argument doesn't make it appear in the shell Vim was started from. */ |
965 may_req_termresponse(); | 968 may_req_termresponse(); |