diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-01-11 22:16:30 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-01-11 22:16:30 +0100 |
commit | 9567efa1b4a41baca9b2266f5903d5dda7ad1e88 (patch) | |
tree | 2dac11713371330d22bb439098f1841bf6226545 /src/structs.h | |
parent | 082517570d1dce2faf3baa9f752ce0858355d221 (diff) | |
download | vim-git-9567efa1b4a41baca9b2266f5903d5dda7ad1e88.tar.gz |
patch 8.2.2332: Vim9: missing :endif not reported when using :windov8.2.2332
Problem: Vim9: missing :endif not reported when using :windo.
Solution: Pass a getline function to do_cmdline(). (closes #7650)
Diffstat (limited to 'src/structs.h')
-rw-r--r-- | src/structs.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/structs.h b/src/structs.h index c47e29183..d6bf6672a 100644 --- a/src/structs.h +++ b/src/structs.h @@ -4300,6 +4300,32 @@ typedef struct int sa_wrapped; // search wrapped around } searchit_arg_T; +/* + * Cookie used by getsourceline(). + */ +/* + * Cookie used to store info for each sourced file. + * It is shared between do_source() and getsourceline(). + * This is passed to do_cmdline(). + */ +typedef struct { + FILE *fp; // opened file for sourcing + char_u *nextline; // if not NULL: line that was read ahead + linenr_T sourcing_lnum; // line number of the source file + int finished; // ":finish" used +#ifdef USE_CRNL + int fileformat; // EOL_UNKNOWN, EOL_UNIX or EOL_DOS + int error; // TRUE if LF found after CR-LF +#endif +#ifdef FEAT_EVAL + linenr_T breakpoint; // next line with breakpoint or zero + char_u *fname; // name of sourced file + int dbg_tick; // debug_tick when breakpoint was set + int level; // top nesting level of sourced file +#endif + vimconv_T conv; // type of conversion +} source_cookie_T; + #define WRITEBUFSIZE 8192 // size of normal write buffer |