comparison src/spell.c @ 26441:65ab0b035dd8 v8.2.3751

patch 8.2.3751: cannot assign a lambda to an option that takes a function Commit: https://github.com/vim/vim/commit/6409553b6e3b4de4e1d72b8ee5445595214581ff Author: Yegappan Lakshmanan <yegappan@yahoo.com> Date: Mon Dec 6 11:03:55 2021 +0000 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 #9286)
author Bram Moolenaar <Bram@vim.org>
date Mon, 06 Dec 2021 12:15:04 +0100
parents 0082503ff2ff
children fc859aea8cec
comparison
equal deleted inserted replaced
26440:f6f5f604c17c 26441:65ab0b035dd8
3828 char_u *spl; 3828 char_u *spl;
3829 long dummy; 3829 long dummy;
3830 3830
3831 if (no_spell_checking(curwin)) 3831 if (no_spell_checking(curwin))
3832 return; 3832 return;
3833 (void)get_option_value((char_u*)"spl", &dummy, &spl, OPT_LOCAL); 3833 (void)get_option_value((char_u*)"spl", &dummy, &spl, NULL, OPT_LOCAL);
3834 3834
3835 // Create a new empty buffer in a new window. 3835 // Create a new empty buffer in a new window.
3836 do_cmdline_cmd((char_u *)"new"); 3836 do_cmdline_cmd((char_u *)"new");
3837 3837
3838 // enable spelling locally in the new window 3838 // enable spelling locally in the new window