summaryrefslogtreecommitdiff
path: root/src/os_win32.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-11-18 18:53:45 +0000
committerBram Moolenaar <Bram@vim.org>2021-11-18 18:53:45 +0000
commit0526815c15170a5926e1008600ec29d42d8b64c2 (patch)
treecb743f2c7be21b9cbf5f711144018539f6e313ee /src/os_win32.c
parent3cad47038547e694cfa26ba39c399f610d2054bd (diff)
downloadvim-git-0526815c15170a5926e1008600ec29d42d8b64c2.tar.gz
patch 8.2.3617: ":verbose pwd" does not mention 'autochdir' was appliedv8.2.3617
Problem: ":verbose pwd" does not mention 'autochdir' was applied. Solution: Remember the last chdir was done by 'autochdir'. (issue #9142)
Diffstat (limited to 'src/os_win32.c')
-rw-r--r--src/os_win32.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/os_win32.c b/src/os_win32.c
index 73af6a181..a8062a82f 100644
--- a/src/os_win32.c
+++ b/src/os_win32.c
@@ -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();