diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-08-20 15:02:42 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-08-20 15:02:42 +0200 |
commit | 66250c932e8a0e3c43e7c7c7b1dbede040b9c508 (patch) | |
tree | 485324d99b96692841c3f44ad0f76b4c67be4d49 /src/ex_cmds.h | |
parent | 93ad14710bdf77591f927a2b244bba6a8cbc7706 (diff) | |
download | vim-git-66250c932e8a0e3c43e7c7c7b1dbede040b9c508.tar.gz |
patch 8.2.1491: Vim9: crash when compiling heredoc lines start with commentv8.2.1491
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)
Diffstat (limited to 'src/ex_cmds.h')
-rw-r--r-- | src/ex_cmds.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ex_cmds.h b/src/ex_cmds.h index b993ef21a..3977c4d6e 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. |