Mercurial > vim
comparison src/proto/userfunc.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 | 30a997217524 |
children | 3d0632b260fd |
comparison
equal
deleted
inserted
replaced
21882:80443e8b72ce | 21883:a427f5f26419 |
---|---|
44 void ex_return(exarg_T *eap); | 44 void ex_return(exarg_T *eap); |
45 void ex_call(exarg_T *eap); | 45 void ex_call(exarg_T *eap); |
46 int do_return(exarg_T *eap, int reanimate, int is_cmd, void *rettv); | 46 int do_return(exarg_T *eap, int reanimate, int is_cmd, void *rettv); |
47 void discard_pending_return(void *rettv); | 47 void discard_pending_return(void *rettv); |
48 char_u *get_return_cmd(void *rettv); | 48 char_u *get_return_cmd(void *rettv); |
49 char_u *get_func_line(int c, void *cookie, int indent, int do_concat); | 49 char_u *get_func_line(int c, void *cookie, int indent, getline_opt_T options); |
50 int func_has_ended(void *cookie); | 50 int func_has_ended(void *cookie); |
51 int func_has_abort(void *cookie); | 51 int func_has_abort(void *cookie); |
52 dict_T *make_partial(dict_T *selfdict_in, typval_T *rettv); | 52 dict_T *make_partial(dict_T *selfdict_in, typval_T *rettv); |
53 char_u *func_name(void *cookie); | 53 char_u *func_name(void *cookie); |
54 linenr_T *func_breakpoint(void *cookie); | 54 linenr_T *func_breakpoint(void *cookie); |