comparison src/ex_cmds.h @ 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 2f2e528c5782
children eb1f5f618c75
comparison
equal deleted inserted replaced
21882:80443e8b72ce 21883:a427f5f26419
1865 int force_ff; // ++ff= argument (first char of argument) 1865 int force_ff; // ++ff= argument (first char of argument)
1866 int force_enc; // ++enc= argument (index in cmd[]) 1866 int force_enc; // ++enc= argument (index in cmd[])
1867 int bad_char; // BAD_KEEP, BAD_DROP or replacement byte 1867 int bad_char; // BAD_KEEP, BAD_DROP or replacement byte
1868 int useridx; // user command index 1868 int useridx; // user command index
1869 char *errmsg; // returned error message 1869 char *errmsg; // returned error message
1870 char_u *(*getline)(int, void *, int, int); 1870 char_u *(*getline)(int, void *, int, getline_opt_T);
1871 void *cookie; // argument for getline() 1871 void *cookie; // argument for getline()
1872 #ifdef FEAT_EVAL 1872 #ifdef FEAT_EVAL
1873 cstack_T *cstack; // condition stack for ":if" etc. 1873 cstack_T *cstack; // condition stack for ":if" etc.
1874 #endif 1874 #endif
1875 long verbose_save; // saved value of p_verbose 1875 long verbose_save; // saved value of p_verbose