Mercurial > vim
diff src/structs.h @ 21058:111f877e63d9 v8.2.1080
patch 8.2.1080: Vim9: no line break allowed in a for loop
Commit: https://github.com/vim/vim/commit/b7a78f7a6713f07d2fcad0b27dea22925c7b1cdf
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jun 28 18:43:40 2020 +0200
patch 8.2.1080: Vim9: no line break allowed in a for loop
Problem: Vim9: no line break allowed in a for loop.
Solution: Skip line breaks in for command.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 28 Jun 2020 18:45:04 +0200 |
parents | a7c202f5cbe9 |
children | caab594592cc |
line wrap: on
line diff
--- a/src/structs.h +++ b/src/structs.h @@ -1758,11 +1758,12 @@ typedef struct // Struct passed through eval() functions. // See EVALARG_EVALUATE for a fixed value with eval_flags set to EVAL_EVALUATE. typedef struct { - int eval_flags; // EVAL_ flag values below + int eval_flags; // EVAL_ flag values below + int eval_break_count; // nr of line breaks consumed // copied from exarg_T when "getline" is "getsourceline". Can be NULL. char_u *(*eval_getline)(int, void *, int, int); - void *eval_cookie; // argument for eval_getline() + void *eval_cookie; // argument for eval_getline() // Used to collect lines while parsing them, so that they can be // concatenated later. Used when "eval_ga.ga_itemsize" is not zero.