From 66250c932e8a0e3c43e7c7c7b1dbede040b9c508 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 20 Aug 2020 15:02:42 +0200 Subject: patch 8.2.1491: Vim9: crash when compiling heredoc lines start with comment Problem: Vim9: crash when compiling heredoc lines start with comment. Solution: Skip over NULL pointers. Do not remove comment and empty lines when fetching function lines. (closes #6743) --- src/ex_cmds.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ex_cmds.h') diff --git a/src/ex_cmds.h b/src/ex_cmds.h index b993ef21a8..3977c4d6ee 100644 --- a/src/ex_cmds.h +++ b/src/ex_cmds.h @@ -1867,7 +1867,7 @@ struct exarg int bad_char; // BAD_KEEP, BAD_DROP or replacement byte int useridx; // user command index char *errmsg; // returned error message - char_u *(*getline)(int, void *, int, int); + char_u *(*getline)(int, void *, int, getline_opt_T); void *cookie; // argument for getline() #ifdef FEAT_EVAL cstack_T *cstack; // condition stack for ":if" etc. -- cgit v1.2.3