Mercurial > vim
comparison src/evalvars.c @ 26518:13ba00ef7687 v8.2.3788
patch 8.2.3788: lambda for option that is a function may be freed
Commit: https://github.com/vim/vim/commit/6ae8fae8696623b527c7fb22567f6a3705b2f0dd
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Sun Dec 12 16:26:44 2021 +0000
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 12 Dec 2021 17:30:04 +0100 |
parents | 7821550ba3a8 |
children | 4d8226001391 |
comparison
equal
deleted
inserted
replaced
26517:7dfc4c45f698 | 26518:13ba00ef7687 |
---|---|
1393 int failed = FALSE; | 1393 int failed = FALSE; |
1394 int opt_p_flags; | 1394 int opt_p_flags; |
1395 char_u *tofree = NULL; | 1395 char_u *tofree = NULL; |
1396 char_u numbuf[NUMBUFLEN]; | 1396 char_u numbuf[NUMBUFLEN]; |
1397 | 1397 |
1398 | |
1399 c1 = *p; | 1398 c1 = *p; |
1400 *p = NUL; | 1399 *p = NUL; |
1401 | 1400 |
1402 opt_type = get_option_value(arg, &numval, &stringval, &opt_p_flags, | 1401 opt_type = get_option_value(arg, &numval, &stringval, &opt_p_flags, |
1403 scope); | 1402 scope); |