Mercurial > vim
comparison src/buffer.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 | db9fdfb86679 |
children | 582218dbc6b3 |
comparison
equal
deleted
inserted
replaced
26170:3e5f506a2165 | 26171:fa8161b003f6 |
---|---|
1897 do_autochdir(void) | 1897 do_autochdir(void) |
1898 { | 1898 { |
1899 if ((starting == 0 || test_autochdir) | 1899 if ((starting == 0 || test_autochdir) |
1900 && curbuf->b_ffname != NULL | 1900 && curbuf->b_ffname != NULL |
1901 && vim_chdirfile(curbuf->b_ffname, "auto") == OK) | 1901 && vim_chdirfile(curbuf->b_ffname, "auto") == OK) |
1902 { | |
1902 shorten_fnames(TRUE); | 1903 shorten_fnames(TRUE); |
1904 last_chdir_reason = "autochdir"; | |
1905 } | |
1903 } | 1906 } |
1904 #endif | 1907 #endif |
1905 | 1908 |
1906 void | 1909 void |
1907 no_write_message(void) | 1910 no_write_message(void) |