Mercurial > vim
comparison src/optionstr.c @ 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 | a2e6da79274d |
children | 8f17f8f327f3 |
comparison
equal
deleted
inserted
replaced
26387:b6eb7e295973 | 26388:8aba638e91eb |
---|---|
2305 popup_close_info(); | 2305 popup_close_info(); |
2306 } | 2306 } |
2307 # endif | 2307 # endif |
2308 #endif | 2308 #endif |
2309 | 2309 |
2310 #ifdef FEAT_COMPL_FUNC | |
2311 // 'completefunc' | |
2312 else if (gvarp == &p_cfu) | |
2313 { | |
2314 if (set_completefunc_option() == FAIL) | |
2315 errmsg = e_invarg; | |
2316 } | |
2317 | |
2318 // 'omnifunc' | |
2319 else if (gvarp == &p_ofu) | |
2320 { | |
2321 if (set_omnifunc_option() == FAIL) | |
2322 errmsg = e_invarg; | |
2323 } | |
2324 | |
2325 // 'thesaurusfunc' | |
2326 else if (gvarp == &p_tsrfu) | |
2327 { | |
2328 if (set_thesaurusfunc_option() == FAIL) | |
2329 errmsg = e_invarg; | |
2330 } | |
2331 #endif | |
2332 | |
2310 // 'operatorfunc' | 2333 // 'operatorfunc' |
2311 else if (varp == &p_opfunc) | 2334 else if (varp == &p_opfunc) |
2312 { | 2335 { |
2313 if (set_operatorfunc_option() == FAIL) | 2336 if (set_operatorfunc_option() == FAIL) |
2314 errmsg = e_invarg; | 2337 errmsg = e_invarg; |