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/structs.h | |
parent | 021ef351c2127cf8aa5668a881435a0a12774644 (diff) | |
download | vim-git-8658c759f05b317707d56e3b65a5ef63930c7498.tar.gz |
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/structs.h')
-rw-r--r-- | src/structs.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/structs.h b/src/structs.h index 48a531b86..be444e312 100644 --- a/src/structs.h +++ b/src/structs.h @@ -2876,7 +2876,9 @@ struct file_buffer #endif #ifdef FEAT_COMPL_FUNC char_u *b_p_cfu; // 'completefunc' + callback_T b_cfu_cb; // 'completefunc' callback char_u *b_p_ofu; // 'omnifunc' + callback_T b_ofu_cb; // 'omnifunc' callback #endif #ifdef FEAT_EVAL char_u *b_p_tfu; // 'tagfunc' option value @@ -2982,6 +2984,7 @@ struct file_buffer char_u *b_p_tsr; // 'thesaurus' local value #ifdef FEAT_COMPL_FUNC char_u *b_p_tsrfu; // 'thesaurusfunc' local value + callback_T b_tsrfu_cb; // 'thesaurusfunc' callback #endif long b_p_ul; // 'undolevels' local value #ifdef FEAT_PERSISTENT_UNDO |