commit d410583e7d78a31b07c1c27497c594be82c86b68
parent e5cd5098f8fabba41efd3b8491b264c5f73326d3
Author: zeertzjq <zeertzjq@outlook.com>
Date: Thu, 14 Nov 2024 07:21:22 +0800
vim-patch:8b96858: runtime(doc): improve examples for netrw-handler functions
fixes: vim/vim#16043
https://github.com/vim/vim/commit/8b96858996c4bdc68c055d2ef4afa5f88eda455e
Co-authored-by: Christian Brabandt <cb@256bit.org>
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/runtime/doc/pi_netrw.txt b/runtime/doc/pi_netrw.txt
@@ -1501,9 +1501,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
@@ -1516,9 +1516,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
<