Skip to content

Commit 5d046a8

Browse files
committed
tagsrch.txt: Update Vim 9.0.0752
1 parent fb88d19 commit 5d046a8

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

en/tagsrch.txt

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -889,13 +889,16 @@ like |CTRL-]|.
889889

890890
The function used for generating the taglist is specified by setting the
891891
'tagfunc' option. The function will be called with three arguments:
892-
a:pattern The tag identifier or pattern used during the tag search.
893-
a:flags String containing flags to control the function behavior.
894-
a:info Dict containing the following entries:
892+
pattern The tag identifier or pattern used during the tag search.
893+
flags String containing flags to control the function behavior.
894+
info Dict containing the following entries:
895895
buf_ffname Full filename which can be used for priority.
896896
user_data Custom data String, if stored in the tag
897897
stack previously by tagfunc.
898898

899+
Note that in a legacy function "a:" needs to be prepended to the argument name
900+
when using it.
901+
899902
Currently up to three flags may be passed to the tag function:
900903
'c' The function was invoked by a normal command being processed
901904
(mnemonic: the tag function may use the context around the
@@ -931,6 +934,8 @@ If the function returns |v:null| instead of a List, a standard tag lookup will
931934
be performed instead.
932935

933936
It is not allowed to change the tagstack from inside 'tagfunc'. *E986*
937+
It is not allowed to close a window or change window from inside 'tagfunc'.
938+
*E1299*
934939

935940
The following is a hypothetical example of a function used for 'tagfunc'. It
936941
uses the output of |taglist()| to generate the result: a list of tags in the

0 commit comments

Comments
 (0)