Mercurial > vim
diff src/proto/option.pro @ 26175:6b4f017d7005 v8.2.3619
patch 8.2.3619: cannot use a lambda for 'operatorfunc'
Commit: https://github.com/vim/vim/commit/777175b0df8c5ec3cd30d19a2e887e661ac209c8
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Thu Nov 18 22:08:57 2021 +0000
patch 8.2.3619: cannot use a lambda for 'operatorfunc'
Problem: Cannot use a lambda for 'operatorfunc'.
Solution: Support using a lambda or partial. (Yegappan Lakshmanan,
closes #8775)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 18 Nov 2021 23:15:04 +0100 |
parents | ac88cd21ae88 |
children | 65ab0b035dd8 |
line wrap: on
line diff
--- a/src/proto/option.pro +++ b/src/proto/option.pro @@ -10,7 +10,7 @@ void set_init_3(void); void set_helplang_default(char_u *lang); void set_title_defaults(void); void ex_set(exarg_T *eap); -int do_set(char_u *arg, int opt_flags); +int do_set(char_u *arg_start, int opt_flags); void did_set_option(int opt_idx, int opt_flags, int new_value, int value_checked); int string_to_key(char_u *arg, int multi_byte); void did_set_title(void); @@ -78,4 +78,5 @@ char_u *get_showbreak_value(win_T *win); dict_T *get_winbuf_options(int bufopt); int fill_culopt_flags(char_u *val, win_T *wp); int magic_isset(void); +int option_set_callback_func(char_u *optval, callback_T *optcb); /* vim: set ft=c : */