diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-04-29 09:23:31 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2023-04-29 09:39:55 +0800 |
commit | 7b6d041baed712b071acfa8bb71727a5f5e27561 (patch) | |
tree | 2844deffee1f539d8bf933654dda276bcb55bc9c /src/nvim/lua/executor.c | |
parent | 2eb1f62e29c54fe4d3cebcff388ea6c239313980 (diff) | |
download | rneovim-7b6d041baed712b071acfa8bb71727a5f5e27561.tar.gz rneovim-7b6d041baed712b071acfa8bb71727a5f5e27561.tar.bz2 rneovim-7b6d041baed712b071acfa8bb71727a5f5e27561.zip |
fix(heredoc): allow missing end marker for scripts
Also do not crash when getting heredoc fails.
Diffstat (limited to 'src/nvim/lua/executor.c')
-rw-r--r-- | src/nvim/lua/executor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/lua/executor.c b/src/nvim/lua/executor.c index 1c1f68b68d..9586b56f3c 100644 --- a/src/nvim/lua/executor.c +++ b/src/nvim/lua/executor.c @@ -1619,7 +1619,7 @@ void ex_lua(exarg_T *const eap) { size_t len; char *code = script_get(eap, &len); - if (eap->skip) { + if (eap->skip || code == NULL) { xfree(code); return; } |