aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/lua/executor.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-08-16 06:04:09 +0800
committerGitHub <noreply@github.com>2022-08-16 06:04:09 +0800
commit63e4436d8e9d25548cdc7c5b7e334ef164c150fc (patch)
tree63219cc75b3495147873595053a62b8ee4792052 /src/nvim/lua/executor.c
parente954d62527a6dc081d8942ccac740f17442446be (diff)
parentd1464d16d6897144b29c22f8113aad9b7210e14c (diff)
downloadrneovim-63e4436d8e9d25548cdc7c5b7e334ef164c150fc.tar.gz
rneovim-63e4436d8e9d25548cdc7c5b7e334ef164c150fc.tar.bz2
rneovim-63e4436d8e9d25548cdc7c5b7e334ef164c150fc.zip
Merge pull request #19781 from zeertzjq/source-lua-estack
fix(source): fix expand('<sfile>') no longer works for Lua
Diffstat (limited to 'src/nvim/lua/executor.c')
-rw-r--r--src/nvim/lua/executor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/lua/executor.c b/src/nvim/lua/executor.c
index a86f23db8e..7cfd666f3e 100644
--- a/src/nvim/lua/executor.c
+++ b/src/nvim/lua/executor.c
@@ -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;