mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 14:08:32 +00:00
vim-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 vim/vim#9257)
8658c759f0
Comment out Vim9 script in tests.
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
This commit is contained in:
@@ -1473,6 +1473,18 @@ char *did_set_string_option(int opt_idx, char **varp, char *oldval, char *errbuf
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if (gvarp == &p_cfu) { // 'completefunc'
|
||||
if (set_completefunc_option() == FAIL) {
|
||||
errmsg = e_invarg;
|
||||
}
|
||||
} else if (gvarp == &p_ofu) { // 'omnifunc'
|
||||
if (set_omnifunc_option() == FAIL) {
|
||||
errmsg = e_invarg;
|
||||
}
|
||||
} else if (gvarp == &p_tsrfu) { // 'thesaurusfunc'
|
||||
if (set_thesaurusfunc_option() == FAIL) {
|
||||
errmsg = e_invarg;
|
||||
}
|
||||
} else if (varp == &p_opfunc) { // 'operatorfunc'
|
||||
if (set_operatorfunc_option() == FAIL) {
|
||||
errmsg = e_invarg;
|
||||
|
Reference in New Issue
Block a user