mirror of
https://github.com/vim/vim.git
synced 2025-09-27 04:14:06 -04:00
patch 8.0.1459: cannot handle change of directory
Problem: Cannot handle change of directory. Solution: Add the DirChanged autocommand event. (Andy Massimino, closes #888) Avoid changing directory for 'autochdir' too often.
This commit is contained in:
@@ -2663,7 +2663,7 @@ netbeans_file_opened(buf_T *bufp)
|
||||
nbdebug(("EVT: %s", buffer));
|
||||
|
||||
nb_send(buffer, "netbeans_file_opened");
|
||||
if (p_acd && vim_chdirfile(bufp->b_ffname) == OK)
|
||||
if (p_acd && vim_chdirfile(bufp->b_ffname, "auto") == OK)
|
||||
shorten_fnames(TRUE);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user