mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 13:38:34 +00:00
vim-patch:8.2.3751: cannot assign a lambda to an option that takes a function
Problem: Cannot assign a lambda to an option that takes a function.
Solution: Automatically convert the lambda to a string. (Yegappan
Lakshmanan, closes vim/vim#9286)
6409553b6e
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
This commit is contained in:
@@ -487,7 +487,7 @@ static getoption_T access_option_value(char *key, long *numval, char **stringval
|
||||
bool get, Error *err)
|
||||
{
|
||||
if (get) {
|
||||
return get_option_value(key, numval, stringval, opt_flags);
|
||||
return get_option_value(key, numval, stringval, NULL, opt_flags);
|
||||
} else {
|
||||
char *errmsg;
|
||||
if ((errmsg = set_option_value(key, *numval, *stringval, opt_flags))) {
|
||||
|
Reference in New Issue
Block a user