From be4c8968456231560f17736bf04b4c265a9d7dac Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Tue, 17 Jan 2017 10:47:20 +0100 Subject: DirChanged: set (#5961) Also: - test that DirChanged is not recursive - fix 'not trigger if :cd fails' test on Windows --- src/nvim/file_search.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/nvim/file_search.c b/src/nvim/file_search.c index eb93921bb0..03cb504f17 100644 --- a/src/nvim/file_search.c +++ b/src/nvim/file_search.c @@ -1557,7 +1557,7 @@ static void do_autocmd_dirchanged(char_u *new_dir, CdScope scope) dict_add_nr_str(dict, "cwd", 0L, new_dir); dict_set_keys_readonly(dict); - apply_autocmds(EVENT_DIRCHANGED, NULL, new_dir, false, NULL); + apply_autocmds(EVENT_DIRCHANGED, (char_u *)buf, new_dir, false, NULL); dict_clear(dict); -- cgit