summaryrefslogtreecommitdiff
path: root/src/scriptfile.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-08-18 22:32:03 +0200
committerBram Moolenaar <Bram@vim.org>2020-08-18 22:32:03 +0200
commitaeb2bdd0de5ce5b566509dda5ba9ad6f976063b3 (patch)
tree0f1b73d630fff86f5c939ec79498d83f46960e56 /src/scriptfile.c
parent3affe7a6c6fc813f5d29857933ee6aca0b9c7bd6 (diff)
downloadvim-git-aeb2bdd0de5ce5b566509dda5ba9ad6f976063b3.tar.gz
patch 8.2.1482: Vim9: crash when using a nested lambdav8.2.1482
Problem: Vim9: crash when using a nested lambda. Solution: Do not clear the growarray when not evaluating. Correct pointer when getting the next line. (closes #6731)
Diffstat (limited to 'src/scriptfile.c')
-rw-r--r--src/scriptfile.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/scriptfile.c b/src/scriptfile.c
index fee29712c..4df2c31fe 100644
--- a/src/scriptfile.c
+++ b/src/scriptfile.c
@@ -1065,7 +1065,8 @@ source_level(void *cookie)
}
/*
- * Return the readahead line.
+ * Return the readahead line. Note that the pointer may become invalid when
+ * getting the next line, if it's concatenated with the next one.
*/
char_u *
source_nextline(void *cookie)