aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/nvim/api/vim.c2
-rw-r--r--src/nvim/ex_docmd.c2
-rw-r--r--src/nvim/file_search.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/api/vim.c b/src/nvim/api/vim.c
index b8bd3dd63a..7affb7c06c 100644
--- a/src/nvim/api/vim.c
+++ b/src/nvim/api/vim.c
@@ -683,7 +683,7 @@ void nvim_set_current_dir(String dir, Error *err)
try_start();
- if (vim_chdir((char_u *)string, kCdScopeGlobal)) {
+ if (vim_chdir((char_u *)string)) {
if (!try_end(err)) {
api_set_error(err, kErrorTypeException, "Failed to change directory");
}
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c
index 895fbcd95e..c452129719 100644
--- a/src/nvim/ex_docmd.c
+++ b/src/nvim/ex_docmd.c
@@ -7343,7 +7343,7 @@ void ex_cd(exarg_T *eap)
break;
}
- if (vim_chdir(new_dir, scope)) {
+ if (vim_chdir(new_dir)) {
EMSG(_(e_failed));
} else {
post_chdir(scope, true);
diff --git a/src/nvim/file_search.c b/src/nvim/file_search.c
index ee775bab4a..e358f0218e 100644
--- a/src/nvim/file_search.c
+++ b/src/nvim/file_search.c
@@ -1634,7 +1634,7 @@ int vim_chdirfile(char_u *fname)
}
/// Change directory to "new_dir". Search 'cdpath' for relative directory names.
-int vim_chdir(char_u *new_dir, CdScope scope)
+int vim_chdir(char_u *new_dir)
{
char_u *dir_name = find_directory_in_path(new_dir, STRLEN(new_dir),
FNAME_MESS, curbuf->b_ffname);