mirror of
https://github.com/vim/vim.git
synced 2025-10-05 05:34:07 -04:00
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:
@@ -7783,8 +7783,9 @@ fix_arg_enc(void)
|
||||
if (curwin->w_arg_idx == 0 && curbuf->b_fname == NULL)
|
||||
{
|
||||
do_cmdline_cmd((char_u *)":rewind");
|
||||
if (GARGCOUNT == 1 && used_file_full_path)
|
||||
(void)vim_chdirfile(alist_name(&GARGLIST[0]), "drop");
|
||||
if (GARGCOUNT == 1 && used_file_full_path
|
||||
&& vim_chdirfile(alist_name(&GARGLIST[0]), "drop") == OK)
|
||||
last_chdir_reason = "drop";
|
||||
}
|
||||
|
||||
set_alist_count();
|
||||
|
Reference in New Issue
Block a user