man.vim: parse the section from the tag

This commit is contained in:
Rob Pilling 2019-10-24 21:15:08 +01:00
parent 2f0412e61d
commit 0173bdf98b

View File

@ -420,10 +420,9 @@ function! man#init_pager() abort
endfunction
function! man#goto_tag(pattern, flags, info) abort
" currently no support for section completion
let sect = ""
let [sect, name] = man#extract_sect_and_name_ref(a:pattern)
let candidates = s:get_paths(sect, a:pattern)
let candidates = s:get_paths(sect, name)
return map(candidates, {
\ _, path -> {