mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44: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:
@@ -7193,7 +7193,7 @@ fix_arg_enc(void)
|
||||
{
|
||||
do_cmdline_cmd((char_u *)":rewind");
|
||||
if (GARGCOUNT == 1 && used_file_full_path)
|
||||
(void)vim_chdirfile(alist_name(&GARGLIST[0]));
|
||||
(void)vim_chdirfile(alist_name(&GARGLIST[0]), "drop");
|
||||
}
|
||||
|
||||
set_alist_count();
|
||||
|
Reference in New Issue
Block a user