aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval.h
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-04-14 13:38:14 +0800
committerzeertzjq <zeertzjq@outlook.com>2023-04-14 16:10:09 +0800
commit4b84b2e2aa3d7ab6a4e346c7439826700682f5f1 (patch)
tree375334bffd4ce6f59b0dbbac65ced8fbf97ea186 /src/nvim/eval.h
parente99f28e57d69cfa1bd38ab531a0954f4f875ca47 (diff)
downloadrneovim-4b84b2e2aa3d7ab6a4e346c7439826700682f5f1.tar.gz
rneovim-4b84b2e2aa3d7ab6a4e346c7439826700682f5f1.tar.bz2
rneovim-4b84b2e2aa3d7ab6a4e346c7439826700682f5f1.zip
vim-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. https://github.com/vim/vim/commit/d5053d015a957b343ad9c9e45e0abd2978f10cf0 Omit getline_peek(): Vim9 script only. Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'src/nvim/eval.h')
-rw-r--r--src/nvim/eval.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nvim/eval.h b/src/nvim/eval.h
index 4f517551c6..4e0eb6ebb8 100644
--- a/src/nvim/eval.h
+++ b/src/nvim/eval.h
@@ -272,7 +272,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()
+ LineGetter eval_getline;
+ void *eval_cookie; ///< argument for eval_getline()
/// pointer to the line obtained with getsourceline()
char *eval_tofree;
@@ -284,7 +285,7 @@ enum {
};
/// Passed to an eval() function to enable evaluation.
-EXTERN evalarg_T EVALARG_EVALUATE INIT(= { EVAL_EVALUATE, NULL, NULL });
+EXTERN evalarg_T EVALARG_EVALUATE INIT(= { EVAL_EVALUATE, NULL, NULL, NULL });
#ifdef INCLUDE_GENERATED_DECLARATIONS
# include "eval.h.generated.h"