aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-01-17 10:47:20 +0100
committerGitHub <noreply@github.com>2017-01-17 10:47:20 +0100
commitbe4c8968456231560f17736bf04b4c265a9d7dac (patch)
tree4e6880d137af4a5405217acabea5280c59e11925 /src
parenta062cd4ce58ba9aca6fdce443b014c9c0949ecde (diff)
downloadrneovim-be4c8968456231560f17736bf04b4c265a9d7dac.tar.gz
rneovim-be4c8968456231560f17736bf04b4c265a9d7dac.tar.bz2
rneovim-be4c8968456231560f17736bf04b4c265a9d7dac.zip
DirChanged: set <amatch> (#5961)
Also: - test that DirChanged is not recursive - fix 'not trigger if :cd fails' test on Windows
Diffstat (limited to 'src')
-rw-r--r--src/nvim/file_search.c2
1 files changed, 1 insertions, 1 deletions
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);