mirror of
https://github.com/vim/vim.git
synced 2025-11-16 23:24:03 -05: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:
@@ -1105,7 +1105,8 @@ HandleODocAE(const AppleEvent *theAEvent, AppleEvent *theReply, long refCon)
|
||||
}
|
||||
|
||||
/* Change directory to the location of the first file. */
|
||||
if (GARGCOUNT > 0 && vim_chdirfile(alist_name(&GARGLIST[0])) == OK)
|
||||
if (GARGCOUNT > 0
|
||||
&& vim_chdirfile(alist_name(&GARGLIST[0]), "drop") == OK)
|
||||
shorten_fnames(TRUE);
|
||||
|
||||
goto finished;
|
||||
|
||||
Reference in New Issue
Block a user