diff options
author | Yegappan Lakshmanan <yegappan@yahoo.com> | 2021-11-24 16:32:55 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-11-24 16:32:55 +0000 |
commit | 19916a8c8920b6a1fd737ffa6d4e363fc7a96319 (patch) | |
tree | c91095739b0714cb9edee11c8d3cdea88d4dbd77 /runtime/doc | |
parent | e413ea04b716effb28eb49dbc98ad3f9f761545a (diff) |
patch 8.2.3665: cannot use a lambda for 'tagfunc'v8.2.3665
Problem: Cannot use a lambda for 'tagfunc'.
Solution: Use 'tagfunc' like 'opfunc'. (Yegappan Lakshmanan, closes #9204)
Diffstat (limited to 'runtime/doc')
-rw-r--r-- | runtime/doc/options.txt | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt index 8fa4cebb43..f5f570ba38 100644 --- a/runtime/doc/options.txt +++ b/runtime/doc/options.txt @@ -377,9 +377,9 @@ Some options ('completefunc', 'imactivatefunc', 'imstatusfunc', 'omnifunc', or a function reference or a lambda function. Examples: > set opfunc=MyOpFunc - set opfunc=function("MyOpFunc") - set opfunc=funcref("MyOpFunc") - set opfunc={t\ ->\ MyOpFunc(t)} + set opfunc=function('MyOpFunc') + set opfunc=funcref('MyOpFunc') + let &opfunc = "{t -> MyOpFunc(t)}" < Setting the filetype @@ -7792,7 +7792,9 @@ A jump table for the options with a short description can be found at |Q_op|. This option specifies a function to be used to perform tag searches. The function gets the tag pattern and should return a List of matching tags. See |tag-function| for an explanation of how to write the - function and an example. + function and an example. The value can be the name of a function, a + |lambda| or a |Funcref|. See |option-value-function| for more + information. *'taglength'* *'tl'* 'taglength' 'tl' number (default 0) |