comparison runtime/doc/options.txt @ 21112:2d3cd9acf853 v8.2.1107

patch 8.2.1107: 'imactivatefunc' and 'imstatusfunc' are not used in the GUI Commit: https://github.com/vim/vim/commit/ef8c617b9c4dc262ed34598d7e382237696c3d61 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jul 1 15:12:44 2020 +0200 patch 8.2.1107: 'imactivatefunc' and 'imstatusfunc' are not used in the GUI Problem: 'imactivatefunc' and 'imstatusfunc' are not used in the GUI. Solution: Adjust the #ifdefs. (closes https://github.com/vim/vim/issues/6367)
author Bram Moolenaar <Bram@vim.org>
date Wed, 01 Jul 2020 15:15:04 +0200
parents 83cfa1ef1bf2
children 9f9c26b3ddc5
comparison
equal deleted inserted replaced
21111:61b586084599 21112:2d3cd9acf853
4131 *'imactivatefunc'* *'imaf'* 4131 *'imactivatefunc'* *'imaf'*
4132 'imactivatefunc' 'imaf' string (default "") 4132 'imactivatefunc' 'imaf' string (default "")
4133 global 4133 global
4134 This option specifies a function that will be called to 4134 This option specifies a function that will be called to
4135 activate or deactivate the Input Method. 4135 activate or deactivate the Input Method.
4136 It is not used in the GUI. 4136 It is not used in the MS-Windows GUI version.
4137 The expression will be evaluated in the |sandbox| when set from a 4137 The expression will be evaluated in the |sandbox| when set from a
4138 modeline, see |sandbox-option|. 4138 modeline, see |sandbox-option|.
4139 4139
4140 Example: > 4140 Example: >
4141 function ImActivateFunc(active) 4141 function ImActivateFunc(active)
4240 *'imstatusfunc'* *'imsf'* 4240 *'imstatusfunc'* *'imsf'*
4241 'imstatusfunc' 'imsf' string (default "") 4241 'imstatusfunc' 'imsf' string (default "")
4242 global 4242 global
4243 This option specifies a function that is called to obtain the status 4243 This option specifies a function that is called to obtain the status
4244 of Input Method. It must return a positive number when IME is active. 4244 of Input Method. It must return a positive number when IME is active.
4245 It is not used in the GUI. 4245 It is not used in the MS-Windows GUI version.
4246 4246
4247 Example: > 4247 Example: >
4248 function ImStatusFunc() 4248 function ImStatusFunc()
4249 let is_active = ...do something 4249 let is_active = ...do something
4250 return is_active ? 1 : 0 4250 return is_active ? 1 : 0