]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(doc): add reference to matchbufline() at :h search()
authorChristian Brabandt <cb@256bit.org>
Tue, 12 Mar 2024 21:03:09 +0000 (22:03 +0100)
committerChristian Brabandt <cb@256bit.org>
Tue, 12 Mar 2024 21:03:45 +0000 (22:03 +0100)
related: #14173

Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/doc/builtin.txt

index 941c6a76ef1039ba6411ec6e390eae3c32511d0f..7f71115a18a8038f3b8dd3c03a353e8d7bf14631 100644 (file)
@@ -7980,6 +7980,7 @@ search({pattern} [, {flags} [, {stopline} [, {timeout} [, {skip}]]]])
                When a match has been found its line number is returned.
                If there is no match a 0 is returned and the cursor doesn't
                move.  No error message is given.
+               To get the matched string, use |matchbufline()|.
 
                {flags} is a String, which can contain these character flags:
                'b'     search Backward instead of forward