runtime(doc): add reference to matchbufline() at :h search()

Commit: 
https://github.com/vim/vim/commit/9a660d2883f92b3a3761c964dc14363a8f70c8d8
Author: Christian Brabandt <[email protected]>
Date:   Tue Mar 12 22:03:09 2024 +0100

    runtime(doc): add reference to matchbufline() at :h search()
    
    related: https://github.com/vim/vim/issues/14173
    
    Signed-off-by: Christian Brabandt <[email protected]>

diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt
index 941c6a76e..7f71115a1 100644
--- a/runtime/doc/builtin.txt
+++ b/runtime/doc/builtin.txt
@@ -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

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/E1rk9Sg-00FYwN-IS%40256bit.org.

Raspunde prin e-mail lui