aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/file_search.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-03-11 22:46:20 +0100
committerJustin M. Keyes <justinkz@gmail.com>2017-03-12 14:39:32 +0100
commit99a1a58c66b9bc56d98ee7a8d249d594669e9573 (patch)
tree6d7b42944639a96d43e7b8ab0db9c37b94af56ac /src/nvim/file_search.c
parent82117da5df93666798b94e4e6e47e11dcb1b4dcd (diff)
downloadrneovim-99a1a58c66b9bc56d98ee7a8d249d594669e9573.tar.gz
rneovim-99a1a58c66b9bc56d98ee7a8d249d594669e9573.tar.bz2
rneovim-99a1a58c66b9bc56d98ee7a8d249d594669e9573.zip
DirChanged: Publish _after_ updating win/tab CWD.
So getcwd() works correctly during DirChanged event. Closes #6260
Diffstat (limited to 'src/nvim/file_search.c')
-rw-r--r--src/nvim/file_search.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/nvim/file_search.c b/src/nvim/file_search.c
index 79a39c6503..34696ddd7f 100644
--- a/src/nvim/file_search.c
+++ b/src/nvim/file_search.c
@@ -1519,7 +1519,7 @@ theend:
return file_name;
}
-static void do_autocmd_dirchanged(char_u *new_dir, CdScope scope)
+void do_autocmd_dirchanged(char *new_dir, CdScope scope)
{
static bool recursive = false;
@@ -1587,10 +1587,6 @@ int vim_chdir(char_u *new_dir, CdScope scope)
}
int r = os_chdir((char *)dir_name);
- if (r == 0) {
- do_autocmd_dirchanged(dir_name, scope);
- }
-
xfree(dir_name);
return r;
}