aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/file_search.c
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2016-08-20 23:56:49 +0300
committerZyX <kp-pav@yandex.ru>2017-03-29 10:07:43 +0300
commit2dcfc439b2ec2be4d830826061e89860977516be (patch)
treef5f3b73e9f579ffe9388574538e50be18cd13d44 /src/nvim/file_search.c
parent210342d795a13e88579d3e55ae931463d16f241d (diff)
downloadrneovim-2dcfc439b2ec2be4d830826061e89860977516be.tar.gz
rneovim-2dcfc439b2ec2be4d830826061e89860977516be.tar.bz2
rneovim-2dcfc439b2ec2be4d830826061e89860977516be.zip
eval: Split and move dict_add_nr_str to typval.c
Function was split into tv_dict_add_nr() and tv_dict_add_str().
Diffstat (limited to 'src/nvim/file_search.c')
-rw-r--r--src/nvim/file_search.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/file_search.c b/src/nvim/file_search.c
index d7120a7309..f7932bc296 100644
--- a/src/nvim/file_search.c
+++ b/src/nvim/file_search.c
@@ -1549,8 +1549,8 @@ void do_autocmd_dirchanged(char *new_dir, CdScope scope)
assert(false);
}
- dict_add_nr_str(dict, "scope", 0L, (char_u *)buf);
- dict_add_nr_str(dict, "cwd", 0L, (char_u *)new_dir);
+ tv_dict_add_str(dict, S_LEN("scope"), buf);
+ tv_dict_add_str(dict, S_LEN("cwd"), new_dir);
tv_dict_set_keys_readonly(dict);
apply_autocmds(EVENT_DIRCHANGED, (char_u *)buf, (char_u *)new_dir, false,