Mercurial > vim
diff src/proto/scriptfile.pro @ 21883:a427f5f26419 v8.2.1491
patch 8.2.1491: Vim9: crash when compiling heredoc lines start with comment
Commit: https://github.com/vim/vim/commit/66250c932e8a0e3c43e7c7c7b1dbede040b9c508
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Aug 20 15:02:42 2020 +0200
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 20 Aug 2020 15:15:05 +0200 |
parents | 7449921216bc |
children | a607f02fd17a |
line wrap: on
line diff
--- a/src/proto/scriptfile.pro +++ b/src/proto/scriptfile.pro @@ -29,13 +29,13 @@ void scriptnames_slash_adjust(void); char_u *get_scriptname(scid_T id); void free_scriptnames(void); void free_autoload_scriptnames(void); -linenr_T get_sourced_lnum(char_u *(*fgetline)(int, void *, int, int), void *cookie); -char_u *getsourceline(int c, void *cookie, int indent, int do_concat); +linenr_T get_sourced_lnum(char_u *(*fgetline)(int, void *, int, getline_opt_T), void *cookie); +char_u *getsourceline(int c, void *cookie, int indent, getline_opt_T options); void ex_scriptencoding(exarg_T *eap); void ex_scriptversion(exarg_T *eap); void ex_finish(exarg_T *eap); void do_finish(exarg_T *eap, int reanimate); -int source_finished(char_u *(*fgetline)(int, void *, int, int), void *cookie); +int source_finished(char_u *(*fgetline)(int, void *, int, getline_opt_T), void *cookie); char_u *autoload_name(char_u *name); int script_autoload(char_u *name, int reload); /* vim: set ft=c : */