aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/buffer.c
diff options
context:
space:
mode:
authorMarco Hinz <mh.codebro@gmail.com>2019-04-13 12:50:36 +0200
committerGitHub <noreply@github.com>2019-04-13 12:50:36 +0200
commit5f996e36d102beeb76848021fe0ded5107c8f24d (patch)
tree27da72da722367d870bb4aecdf4deeab60664c44 /src/nvim/buffer.c
parentd08692a8246039b938b5645a6c01b4ff7f51671e (diff)
downloadrneovim-5f996e36d102beeb76848021fe0ded5107c8f24d.tar.gz
rneovim-5f996e36d102beeb76848021fe0ded5107c8f24d.tar.bz2
rneovim-5f996e36d102beeb76848021fe0ded5107c8f24d.zip
options: properly reset directories on 'autochdir' (#9894)
Fixes https://github.com/neovim/neovim/issues/9892
Diffstat (limited to 'src/nvim/buffer.c')
-rw-r--r--src/nvim/buffer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c
index d7a16de299..b9c4c4d544 100644
--- a/src/nvim/buffer.c
+++ b/src/nvim/buffer.c
@@ -1620,6 +1620,7 @@ void do_autochdir(void)
if (starting == 0
&& curbuf->b_ffname != NULL
&& vim_chdirfile(curbuf->b_ffname) == OK) {
+ post_chdir(kCdScopeGlobal, false);
shorten_fnames(true);
}
}