fix(source): make changing 'shellslash' change expand() result

This commit is contained in:
zeertzjq
2022-08-15 08:28:20 +08:00
parent d6a6adf708
commit 9ab9eb1220
3 changed files with 36 additions and 7 deletions

View File

@@ -1906,7 +1906,7 @@ void nlua_set_sctx(sctx_T *current)
break;
}
char *source_path = fix_fname(info->source + 1);
get_current_script_id((char_u *)source_path, current);
get_current_script_id(&source_path, current);
xfree(source_path);
current->sc_lnum = info->currentline;
current->sc_seq = -1;