summaryrefslogtreecommitdiffstats
path: root/src/if_ruby.c
diff options
context:
space:
mode:
authorYegappan Lakshmanan <yegappan@yahoo.com>2021-12-06 11:03:55 +0000
committerBram Moolenaar <Bram@vim.org>2021-12-06 11:03:55 +0000
commit6409553b6e3b4de4e1d72b8ee5445595214581ff (patch)
tree1b24d5f956763a1bc7a5b47fc9875598d0d438d6 /src/if_ruby.c
parent40bcec1bac34d34a3d4d7c5f6b2cc1f163acbd00 (diff)
patch 8.2.3751: cannot assign a lambda to an option that takes a functionv8.2.3751
Problem: Cannot assign a lambda to an option that takes a function. Solution: Automatically convert the lambda to a string. (Yegappan Lakshmanan, closes #9286)
Diffstat (limited to 'src/if_ruby.c')
-rw-r--r--src/if_ruby.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/if_ruby.c b/src/if_ruby.c
index 5098468e6a..0d7eaf2e89 100644
--- a/src/if_ruby.c
+++ b/src/if_ruby.c
@@ -875,7 +875,7 @@ vim_str2rb_enc_str(const char *s)
char_u *sval;
rb_encoding *enc;
- if (get_option_value((char_u *)"enc", &lval, &sval, 0) == gov_string)
+ if (get_option_value((char_u *)"enc", &lval, &sval, NULL, 0) == gov_string)
{
enc = rb_enc_find((char *)sval);
vim_free(sval);
@@ -895,7 +895,7 @@ eval_enc_string_protect(const char *str, int *state)
rb_encoding *enc;
VALUE v;
- if (get_option_value((char_u *)"enc", &lval, &sval, 0) == gov_string)
+ if (get_option_value((char_u *)"enc", &lval, &sval, NULL, 0) == gov_string)
{
enc = rb_enc_find((char *)sval);
vim_free(sval);