summaryrefslogtreecommitdiff
path: root/src/scriptfile.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-06-24 18:37:35 +0200
committerBram Moolenaar <Bram@vim.org>2020-06-24 18:37:35 +0200
commit5409f5d8c95007216ae1190565a7a8ee9ebd7100 (patch)
treecbc94bc8f6560299b6ef2224f526ab53c7534bc6 /src/scriptfile.c
parentb7e2483655d9b68df0c7349918027d800051a28a (diff)
downloadvim-git-5409f5d8c95007216ae1190565a7a8ee9ebd7100.tar.gz
patch 8.2.1047: Vim9: script cannot use line continuation like :def functionv8.2.1047
Problem: Vim9: script cannot use line continuation like in a :def function. Solution: Pass the getline function pointer to the eval() functions. Use it for addition and multiplication operators.
Diffstat (limited to 'src/scriptfile.c')
-rw-r--r--src/scriptfile.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/scriptfile.c b/src/scriptfile.c
index caeab1928..9ffc66c1b 100644
--- a/src/scriptfile.c
+++ b/src/scriptfile.c
@@ -1050,6 +1050,15 @@ source_level(void *cookie)
{
return ((struct source_cookie *)cookie)->level;
}
+
+/*
+ * Return the readahead line.
+ */
+ char_u *
+source_nextline(void *cookie)
+{
+ return ((struct source_cookie *)cookie)->nextline;
+}
#endif
#if (defined(MSWIN) && defined(FEAT_CSCOPE)) || defined(HAVE_FD_CLOEXEC)