aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/lua/executor.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-04-29 10:07:51 +0800
committerGitHub <noreply@github.com>2023-04-29 10:07:51 +0800
commit3287fc2ba9284d48e945ab0008b7844e1ec40eec (patch)
tree2844deffee1f539d8bf933654dda276bcb55bc9c /src/nvim/lua/executor.c
parent129012172258a08efa87cbab927cdd3e4da7db90 (diff)
parent7b6d041baed712b071acfa8bb71727a5f5e27561 (diff)
downloadrneovim-3287fc2ba9284d48e945ab0008b7844e1ec40eec.tar.gz
rneovim-3287fc2ba9284d48e945ab0008b7844e1ec40eec.tar.bz2
rneovim-3287fc2ba9284d48e945ab0008b7844e1ec40eec.zip
Merge pull request #23386 from zeertzjq/vim-8.2.0551
vim-patch:8.2.{0551,0578,0672}: heredoc for interfaces does not support "trim"
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 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;
}