Mercurial > vim
comparison src/proto/ex_getln.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 | 06a1dd50463e |
children | e8873138ffbb |
comparison
equal
deleted
inserted
replaced
21882:80443e8b72ce | 21883:a427f5f26419 |
---|---|
7 void text_locked_msg(void); | 7 void text_locked_msg(void); |
8 char *get_text_locked_msg(void); | 8 char *get_text_locked_msg(void); |
9 int text_locked(void); | 9 int text_locked(void); |
10 int curbuf_locked(void); | 10 int curbuf_locked(void); |
11 int allbuf_locked(void); | 11 int allbuf_locked(void); |
12 char_u *getexline(int c, void *cookie, int indent, int do_concat); | 12 char_u *getexline(int c, void *cookie, int indent, getline_opt_T options); |
13 char_u *getexmodeline(int promptc, void *cookie, int indent, int do_concat); | 13 char_u *getexmodeline(int promptc, void *cookie, int indent, getline_opt_T options); |
14 int cmdline_overstrike(void); | 14 int cmdline_overstrike(void); |
15 int cmdline_at_end(void); | 15 int cmdline_at_end(void); |
16 colnr_T cmdline_getvcol_cursor(void); | 16 colnr_T cmdline_getvcol_cursor(void); |
17 int realloc_cmdbuff(int len); | 17 int realloc_cmdbuff(int len); |
18 void free_arshape_buf(void); | 18 void free_arshape_buf(void); |