Mercurial > vim
diff src/structs.h @ 26388:8aba638e91eb v8.2.3725
patch 8.2.3725: cannot use a lambda for 'completefunc' and 'omnifunc'
Commit: https://github.com/vim/vim/commit/8658c759f05b317707d56e3b65a5ef63930c7498
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Fri Dec 3 11:09:29 2021 +0000
patch 8.2.3725: cannot use a lambda for 'completefunc' and 'omnifunc'
Problem: Cannot use a lambda for 'completefunc' and 'omnifunc'.
Solution: Implement lambda support. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/9257)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 03 Dec 2021 12:15:04 +0100 |
parents | 3841da4eac23 |
children | b115b552071f |
line wrap: on
line diff
--- 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