aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/buffer.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2021-11-19 20:07:04 +0800
committerzeertzjq <zeertzjq@outlook.com>2021-11-19 20:07:04 +0800
commit4785cad8ee808d166a9cbc9d7ab5761da70d0563 (patch)
treef757646ccce3ddf29fe77288ddd095c876165f8c /src/nvim/buffer.c
parent0f58ba10e264697e4bb330a17b41cd9a0ceb8b1e (diff)
downloadrneovim-4785cad8ee808d166a9cbc9d7ab5761da70d0563.tar.gz
rneovim-4785cad8ee808d166a9cbc9d7ab5761da70d0563.tar.bz2
rneovim-4785cad8ee808d166a9cbc9d7ab5761da70d0563.zip
vim-patch:8.2.3617: ":verbose pwd" does not mention 'autochdir' was applied
Problem: ":verbose pwd" does not mention 'autochdir' was applied. Solution: Remember the last chdir was done by 'autochdir'. (issue vim/vim#9142) https://github.com/vim/vim/commit/0526815c15170a5926e1008600ec29d42d8b64c2
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 88938d5099..89e237a517 100644
--- a/src/nvim/buffer.c
+++ b/src/nvim/buffer.c
@@ -1588,6 +1588,7 @@ void do_autochdir(void)
&& curbuf->b_ffname != NULL
&& vim_chdirfile(curbuf->b_ffname, kCdCauseAuto) == OK) {
post_chdir(kCdScopeGlobal, false);
+ last_chdir_reason = "autochdir";
shorten_fnames(true);
}
}