From 0526815c15170a5926e1008600ec29d42d8b64c2 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 18 Nov 2021 18:53:45 +0000 Subject: 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 #9142) --- src/buffer.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/buffer.c') diff --git a/src/buffer.c b/src/buffer.c index 31f902d779..29cfb8a993 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -1899,7 +1899,10 @@ do_autochdir(void) if ((starting == 0 || test_autochdir) && curbuf->b_ffname != NULL && vim_chdirfile(curbuf->b_ffname, "auto") == OK) + { shorten_fnames(TRUE); + last_chdir_reason = "autochdir"; + } } #endif -- cgit v1.2.3