mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:8b96858: runtime(doc): improve examples for netrw-handler functions
fixes: vim/vim#16043
8b96858996
Co-authored-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
parent
e5cd5098f8
commit
d410583e7d
@ -1501,9 +1501,9 @@ For example, special handlers for links Markdown and HTML are
|
|||||||
return matchstr(getline('.')[col('.')-1:],
|
return matchstr(getline('.')[col('.')-1:],
|
||||||
\ '\[.\{-}\](\zs' .. g:netrw_regex_url .. '\ze\(\s\+.\{-}\)\?)')
|
\ '\[.\{-}\](\zs' .. g:netrw_regex_url .. '\ze\(\s\+.\{-}\)\?)')
|
||||||
endif
|
endif
|
||||||
|
return ''
|
||||||
finally
|
finally
|
||||||
call winrestview(save_view)
|
call winrestview(save_view)
|
||||||
return ''
|
|
||||||
endtry
|
endtry
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
@ -1516,9 +1516,9 @@ For example, special handlers for links Markdown and HTML are
|
|||||||
return matchstr(getline('.')[col('.') - 1 : ],
|
return matchstr(getline('.')[col('.') - 1 : ],
|
||||||
\ 'href=["'.."'"..']\?\zs\S\{-}\ze["'.."'"..']\?/\?>')
|
\ 'href=["'.."'"..']\?\zs\S\{-}\ze["'.."'"..']\?/\?>')
|
||||||
endif
|
endif
|
||||||
|
return ''
|
||||||
finally
|
finally
|
||||||
call winrestview(save_view)
|
call winrestview(save_view)
|
||||||
return ''
|
|
||||||
endtry
|
endtry
|
||||||
endfunction
|
endfunction
|
||||||
<
|
<
|
||||||
|
Loading…
Reference in New Issue
Block a user