chdir: remove unused argument #9901

This commit is contained in:
Marco Hinz 2019-04-14 00:08:18 +02:00 committed by Justin M. Keyes
parent 82d48c0dab
commit a0da692fce
3 changed files with 3 additions and 3 deletions

View File

@ -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");
}

View File

@ -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);

View File

@ -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);