mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 22:18:33 +00:00
fix(heredoc): allow missing end marker for scripts
Also do not crash when getting heredoc fails.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user