diff options
author | Yegappan Lakshmanan <yegappan@yahoo.com> | 2021-12-03 11:09:29 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-12-03 11:09:29 +0000 |
commit | 8658c759f05b317707d56e3b65a5ef63930c7498 (patch) | |
tree | 124fcda187b5515dfaeba4c86aa7a5e0f0888686 /src/buffer.c | |
parent | 021ef351c2127cf8aa5668a881435a0a12774644 (diff) |
patch 8.2.3725: cannot use a lambda for 'completefunc' and 'omnifunc'v8.2.3725
Problem: Cannot use a lambda for 'completefunc' and 'omnifunc'.
Solution: Implement lambda support. (Yegappan Lakshmanan, closes #9257)
Diffstat (limited to 'src/buffer.c')
-rw-r--r-- | src/buffer.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/buffer.c b/src/buffer.c index 20a0d66606..f86ecdd269 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -2326,8 +2326,11 @@ free_buf_options( clear_string_option(&buf->b_p_cpt); #ifdef FEAT_COMPL_FUNC clear_string_option(&buf->b_p_cfu); + free_callback(&buf->b_cfu_cb); clear_string_option(&buf->b_p_ofu); + free_callback(&buf->b_ofu_cb); clear_string_option(&buf->b_p_tsrfu); + free_callback(&buf->b_tsrfu_cb); #endif #ifdef FEAT_QUICKFIX clear_string_option(&buf->b_p_gp); |