forked from aniani/vim
patch 8.2.3788: lambda for option that is a function may be freed
Problem: Lambda for option that is a function may be garbage collected.
Solution: Set a reference in the funcref. (Yegappan Lakshmanan,
closes #9330)
This commit is contained in:
committed by
Bram Moolenaar
parent
6e371ecb27
commit
6ae8fae869
@@ -1395,7 +1395,6 @@ ex_let_option(
|
||||
char_u *tofree = NULL;
|
||||
char_u numbuf[NUMBUFLEN];
|
||||
|
||||
|
||||
c1 = *p;
|
||||
*p = NUL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user