Mercurial > vim
diff runtime/doc/options.txt @ 26408:8f17f8f327f3 v8.2.3735
patch 8.2.3735: cannot use a lambda for 'imactivatefunc'
Commit: https://github.com/vim/vim/commit/7645da568c5e3b4ee339a2e99c3b3af790619787
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Sat Dec 4 14:02:30 2021 +0000
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 04 Dec 2021 15:15:03 +0100 |
parents | 8aba638e91eb |
children | c725b8e17f1f |
line wrap: on
line diff
--- a/runtime/doc/options.txt +++ b/runtime/doc/options.txt @@ -4242,7 +4242,9 @@ A jump table for the options with a shor '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 shor 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: >