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)
diff --git a/src/main.c b/src/main.c
index 450fc12..0d77778 100644
--- a/src/main.c
+++ b/src/main.c
@@ -275,7 +275,8 @@
* Hint: to avoid this when typing a command use a forward slash.
* If the cd fails, it doesn't matter.
*/
- (void)vim_chdirfile(params.fname, "drop");
+ if (vim_chdirfile(params.fname, "drop") == OK)
+ last_chdir_reason = "drop";
if (start_dir != NULL)
mch_dirname(start_dir, MAXPATHL);
}