mirror of
https://github.com/neovim/neovim.git
synced 2025-09-19 09:48:19 +00:00
chdir: remove unused argument #9901
This commit is contained in:

committed by
Justin M. Keyes

parent
82d48c0dab
commit
a0da692fce
@@ -683,7 +683,7 @@ void nvim_set_current_dir(String dir, Error *err)
|
|||||||
|
|
||||||
try_start();
|
try_start();
|
||||||
|
|
||||||
if (vim_chdir((char_u *)string, kCdScopeGlobal)) {
|
if (vim_chdir((char_u *)string)) {
|
||||||
if (!try_end(err)) {
|
if (!try_end(err)) {
|
||||||
api_set_error(err, kErrorTypeException, "Failed to change directory");
|
api_set_error(err, kErrorTypeException, "Failed to change directory");
|
||||||
}
|
}
|
||||||
|
@@ -7343,7 +7343,7 @@ void ex_cd(exarg_T *eap)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (vim_chdir(new_dir, scope)) {
|
if (vim_chdir(new_dir)) {
|
||||||
EMSG(_(e_failed));
|
EMSG(_(e_failed));
|
||||||
} else {
|
} else {
|
||||||
post_chdir(scope, true);
|
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.
|
/// 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),
|
char_u *dir_name = find_directory_in_path(new_dir, STRLEN(new_dir),
|
||||||
FNAME_MESS, curbuf->b_ffname);
|
FNAME_MESS, curbuf->b_ffname);
|
||||||
|
Reference in New Issue
Block a user