]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(doc): improve examples for netrw-handler functions
authorChristian Brabandt <cb@256bit.org>
Wed, 13 Nov 2024 14:38:33 +0000 (15:38 +0100)
committerChristian Brabandt <cb@256bit.org>
Wed, 13 Nov 2024 14:38:33 +0000 (15:38 +0100)
fixes: #16043

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

index c82a1bdeeb09266e01183c40f156b36611d73add..ae0fc65c9191310a22a17edb91823aa981771d4c 100644 (file)
@@ -1,4 +1,4 @@
-*pi_netrw.txt*  For Vim version 9.1.  Last change: 2024 Nov 09
+*pi_netrw.txt*  For Vim version 9.1.  Last change: 2024 Nov 12
 
            ------------------------------------------------
            NETRW REFERENCE MANUAL    by Charles E. Campbell
@@ -1505,9 +1505,9 @@ For example, special handlers for links Markdown and HTML are
         return matchstr(getline('.')[col('.')-1:],
           \ '\[.\{-}\](\zs' .. g:netrw_regex_url .. '\ze\(\s\+.\{-}\)\?)')
       endif
+    return ''
     finally
       call winrestview(save_view)
-      return ''
     endtry
   endfunction
 
@@ -1520,9 +1520,9 @@ For example, special handlers for links Markdown and HTML are
         return matchstr(getline('.')[col('.') - 1 : ],
           \ 'href=["'.."'"..']\?\zs\S\{-}\ze["'.."'"..']\?/\?>')
       endif
+    return ''
     finally
       call winrestview(save_view)
-      return ''
     endtry
   endfunction
 <