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