From d5053d015a957b343ad9c9e45e0abd2978f10cf0 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 28 Jun 2020 15:51:16 +0200 Subject: patch 8.2.1079: Vim9: no line break allowed in a while loop Problem: Vim9: no line break allowed in a while loop. Solution: Update stored loop lines when finding line breaks. --- src/structs.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/structs.h') diff --git a/src/structs.h b/src/structs.h index d68bc0184..fd5ae2aa2 100644 --- a/src/structs.h +++ b/src/structs.h @@ -1761,7 +1761,8 @@ typedef struct { int eval_flags; // EVAL_ flag values below // copied from exarg_T when "getline" is "getsourceline". Can be NULL. - void *eval_cookie; // argument for getline() + char_u *(*eval_getline)(int, void *, int, int); + 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. -- cgit v1.2.1