forked from aniani/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 #9142)
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user