mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
parent
3a6b80f2f4
commit
1cd8517344
@ -215,7 +215,7 @@ function! s:get_path(sect, name) abort
|
|||||||
if empty(a:sect)
|
if empty(a:sect)
|
||||||
" Some man implementations (OpenBSD) return all available paths from the
|
" Some man implementations (OpenBSD) return all available paths from the
|
||||||
" search command, so we get() the first one. #8341
|
" search command, so we get() the first one. #8341
|
||||||
return get(split(s:system(['man', s:find_arg, a:name])), 0, '')
|
return substitute(get(split(s:system(['man', s:find_arg, a:name])), 0, ''), '\n\+$', '', '')
|
||||||
endif
|
endif
|
||||||
" '-s' flag handles:
|
" '-s' flag handles:
|
||||||
" - tokens like 'printf(echo)'
|
" - tokens like 'printf(echo)'
|
||||||
|
Loading…
Reference in New Issue
Block a user