From 54e9cce61274c89e4d8cd80832faecf67724e834 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Fri, 19 Nov 2021 20:07:04 +0800 Subject: revert: partially revert #9894 Vim has a solution to #9892 with fewer side-effects in patch 8.2.3618 --- src/nvim/buffer.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c index 89e237a517..07c775e6d7 100644 --- a/src/nvim/buffer.c +++ b/src/nvim/buffer.c @@ -1587,7 +1587,6 @@ void do_autochdir(void) if (starting == 0 && curbuf->b_ffname != NULL && vim_chdirfile(curbuf->b_ffname, kCdCauseAuto) == OK) { - post_chdir(kCdScopeGlobal, false); last_chdir_reason = "autochdir"; shorten_fnames(true); } -- cgit