comparison src/os_win32.c @ 26171:fa8161b003f6 v8.2.3617

patch 8.2.3617: ":verbose pwd" does not mention 'autochdir' was applied Commit: https://github.com/vim/vim/commit/0526815c15170a5926e1008600ec29d42d8b64c2 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Nov 18 18:53:45 2021 +0000 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 https://github.com/vim/vim/issues/9142)
author Bram Moolenaar <Bram@vim.org>
date Thu, 18 Nov 2021 20:00:06 +0100
parents 0bb9004c993b
children a2e6da79274d
comparison
equal deleted inserted replaced
26170:3e5f506a2165 26171:fa8161b003f6
7781 // If wildcard expansion failed, we are editing the first file of the 7781 // If wildcard expansion failed, we are editing the first file of the
7782 // arglist and there is no file name: Edit the first argument now. 7782 // arglist and there is no file name: Edit the first argument now.
7783 if (curwin->w_arg_idx == 0 && curbuf->b_fname == NULL) 7783 if (curwin->w_arg_idx == 0 && curbuf->b_fname == NULL)
7784 { 7784 {
7785 do_cmdline_cmd((char_u *)":rewind"); 7785 do_cmdline_cmd((char_u *)":rewind");
7786 if (GARGCOUNT == 1 && used_file_full_path) 7786 if (GARGCOUNT == 1 && used_file_full_path
7787 (void)vim_chdirfile(alist_name(&GARGLIST[0]), "drop"); 7787 && vim_chdirfile(alist_name(&GARGLIST[0]), "drop") == OK)
7788 last_chdir_reason = "drop";
7788 } 7789 }
7789 7790
7790 set_alist_count(); 7791 set_alist_count();
7791 } 7792 }
7792 7793