DirChanged: trigger when switching scopes

Closes #6054
This commit is contained in:
Justin M. Keyes
2017-03-12 12:11:10 +01:00
parent 99a1a58c66
commit d9fcbc2cfb
5 changed files with 63 additions and 18 deletions

View File

@@ -6962,7 +6962,6 @@ void post_chdir(CdScope scope)
char curdir[MAXPATHL];
if (os_dirname((char_u *)curdir, MAXPATHL) != OK) {
EMSG2(_(e_intern2), "post_chdir()");
return;
}
switch (scope) {
@@ -6981,7 +6980,7 @@ void post_chdir(CdScope scope)
assert(false);
}
shorten_fnames(TRUE);
shorten_fnames(true);
do_autocmd_dirchanged(curdir, scope);
}