Mercurial > vim
comparison src/main.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 | 078edc1821bf |
children | b1d9ee2f2328 |
comparison
equal
deleted
inserted
replaced
26170:3e5f506a2165 | 26171:fa8161b003f6 |
---|---|
273 * If there is one filename, fully qualified, we have very probably | 273 * If there is one filename, fully qualified, we have very probably |
274 * been invoked from explorer, so change to the file's directory. | 274 * been invoked from explorer, so change to the file's directory. |
275 * Hint: to avoid this when typing a command use a forward slash. | 275 * Hint: to avoid this when typing a command use a forward slash. |
276 * If the cd fails, it doesn't matter. | 276 * If the cd fails, it doesn't matter. |
277 */ | 277 */ |
278 (void)vim_chdirfile(params.fname, "drop"); | 278 if (vim_chdirfile(params.fname, "drop") == OK) |
279 last_chdir_reason = "drop"; | |
279 if (start_dir != NULL) | 280 if (start_dir != NULL) |
280 mch_dirname(start_dir, MAXPATHL); | 281 mch_dirname(start_dir, MAXPATHL); |
281 } | 282 } |
282 #endif | 283 #endif |
283 TIME_MSG("expanding arguments"); | 284 TIME_MSG("expanding arguments"); |