0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.1482: Vim9: crash when using a nested lambda

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)
This commit is contained in:
Bram Moolenaar
2020-08-18 22:32:03 +02:00
parent 3affe7a6c6
commit aeb2bdd0de
4 changed files with 18 additions and 3 deletions

View File

@@ -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)