mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
chdir: remove unused argument #9901
This commit is contained in:
parent
82d48c0dab
commit
a0da692fce
@ -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");
|
||||
}
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user