From 7645da568c5e3b4ee339a2e99c3b3af790619787 Mon Sep 17 00:00:00 2001 From: Yegappan Lakshmanan Date: Sat, 4 Dec 2021 14:02:30 +0000 Subject: patch 8.2.3735: cannot use a lambda for 'imactivatefunc' Problem: Cannot use a lambda for 'imactivatefunc'. Solution: Add lambda support for 'imactivatefunc' and 'imstatusfunc'. (Yegappan Lakshmanan, closes #9275) --- runtime/doc/options.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'runtime/doc') diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt index e352ed8f2..73c92122f 100644 --- a/runtime/doc/options.txt +++ b/runtime/doc/options.txt @@ -4242,7 +4242,9 @@ A jump table for the options with a short description can be found at |Q_op|. 'imactivatefunc' 'imaf' string (default "") global This option specifies a function that will be called to - activate or deactivate the Input Method. + activate or deactivate the Input Method. The value can be the name of + a function, a |lambda| or a |Funcref|. See |option-value-function| for + more information. It is not used in the MS-Windows GUI version. The expression will be evaluated in the |sandbox| when set from a modeline, see |sandbox-option|. @@ -4352,6 +4354,8 @@ A jump table for the options with a short description can be found at |Q_op|. global This option specifies a function that is called to obtain the status of Input Method. It must return a positive number when IME is active. + The value can be the name of a function, a |lambda| or a |Funcref|. + See |option-value-function| for more information. It is not used in the MS-Windows GUI version. Example: > -- cgit v1.2.1