Skip to content

Commit 8b96858

Browse files
committed
runtime(doc): improve examples for netrw-handler functions
fixes: #16043 Signed-off-by: Christian Brabandt <cb@256bit.org>
1 parent 5ca8f22 commit 8b96858

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

runtime/doc/pi_netrw.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*pi_netrw.txt* For Vim version 9.1. Last change: 2024 Nov 09
1+
*pi_netrw.txt* For Vim version 9.1. Last change: 2024 Nov 12
22

33
------------------------------------------------
44
NETRW REFERENCE MANUAL by Charles E. Campbell
@@ -1505,9 +1505,9 @@ For example, special handlers for links Markdown and HTML are
15051505
return matchstr(getline('.')[col('.')-1:],
15061506
\ '\[.\{-}\](\zs' .. g:netrw_regex_url .. '\ze\(\s\+.\{-}\)\?)')
15071507
endif
1508+
return ''
15081509
finally
15091510
call winrestview(save_view)
1510-
return ''
15111511
endtry
15121512
endfunction
15131513
@@ -1520,9 +1520,9 @@ For example, special handlers for links Markdown and HTML are
15201520
return matchstr(getline('.')[col('.') - 1 : ],
15211521
\ 'href=["'.."'"..']\?\zs\S\{-}\ze["'.."'"..']\?/\?>')
15221522
endif
1523+
return ''
15231524
finally
15241525
call winrestview(save_view)
1525-
return ''
15261526
endtry
15271527
endfunction
15281528
<

0 commit comments

Comments
 (0)