mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 20:08:17 +00:00
vim-patch: 7.4.1401
Problem: Having 'autochdir' set during startup and using diff mode doesn't
work. (Axel Bender)
Solution: Don't use 'autochdir' while still starting up. (Christian
Brabandt)
6bd364e084
This commit is contained in:
@@ -1294,14 +1294,15 @@ void enter_buffer(buf_T *buf)
|
||||
redraw_later(NOT_VALID);
|
||||
}
|
||||
|
||||
/*
|
||||
* Change to the directory of the current buffer.
|
||||
*/
|
||||
// Change to the directory of the current buffer.
|
||||
// Don't do this while still starting up.
|
||||
void do_autochdir(void)
|
||||
{
|
||||
if (p_acd) {
|
||||
if (curbuf->b_ffname != NULL && vim_chdirfile(curbuf->b_ffname) == OK) {
|
||||
shorten_fnames(TRUE);
|
||||
if (starting == 0
|
||||
&& curbuf->b_ffname != NULL
|
||||
&& vim_chdirfile(curbuf->b_ffname) == OK) {
|
||||
shorten_fnames(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user