aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-11-14 07:21:22 +0800
committerzeertzjq <zeertzjq@outlook.com>2024-11-14 07:21:25 +0800
commitd410583e7d78a31b07c1c27497c594be82c86b68 (patch)
tree182ad80decb887eaef6b1dcde6f733a57b909513
parente5cd5098f8fabba41efd3b8491b264c5f73326d3 (diff)
downloadrneovim-d410583e7d78a31b07c1c27497c594be82c86b68.tar.gz
rneovim-d410583e7d78a31b07c1c27497c594be82c86b68.tar.bz2
rneovim-d410583e7d78a31b07c1c27497c594be82c86b68.zip
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>
-rw-r--r--runtime/doc/pi_netrw.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/doc/pi_netrw.txt b/runtime/doc/pi_netrw.txt
index 7602568c07..27beffd112 100644
--- 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
<