fix(source): fix expand('<sfile>') no longer works for Lua

This commit is contained in:
zeertzjq
2022-08-15 13:40:01 +08:00
parent 1d28bbf1e5
commit d1464d16d6
3 changed files with 61 additions and 35 deletions

View File

@@ -1318,7 +1318,7 @@ int nlua_source_using_linegetter(LineGetter fgetline, void *cookie, char *name)
current_sctx.sc_sid = SID_STR;
current_sctx.sc_seq = 0;
current_sctx.sc_lnum = 0;
estack_push(ETYPE_SCRIPT, NULL, 0);
estack_push(ETYPE_SCRIPT, name, 0);
garray_T ga;
char_u *line = NULL;