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
committerJustin M. Keyes <justinkz@gmail.com>2019-04-15 21:04:16 +0200
commitf891131c6bb2ab399130e28c9e483e071dafcbcb (patch)
treec98d3ba4ccae34914701f5e93f9370ee632c0ab0 /src/nvim/buffer.c
parent9a5488c2a67e0066d4f2f8aeaf8058deaa58ce7a (diff)
downloadrneovim-f891131c6bb2ab399130e28c9e483e071dafcbcb.tar.gz
rneovim-f891131c6bb2ab399130e28c9e483e071dafcbcb.tar.bz2
rneovim-f891131c6bb2ab399130e28c9e483e071dafcbcb.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 8b107041b1..f74c66f106 100644
--- a/src/nvim/buffer.c
+++ b/src/nvim/buffer.c
@@ -1559,6 +1559,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);
}
}