aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Pilling <robpilling@gmail.com>2019-10-24 21:15:08 +0100
committerRob Pilling <robpilling@gmail.com>2019-10-24 22:15:57 +0100
commit0173bdf98be6f867d1b316d4d2ac87f7a93d95e4 (patch)
tree41c36e545c71a3a2463426ec0031fc3e6f6cc1a1
parent2f0412e61d3c5113f9c121283a7e94a294706387 (diff)
downloadrneovim-0173bdf98be6f867d1b316d4d2ac87f7a93d95e4.tar.gz
rneovim-0173bdf98be6f867d1b316d4d2ac87f7a93d95e4.tar.bz2
rneovim-0173bdf98be6f867d1b316d4d2ac87f7a93d95e4.zip
man.vim: parse the section from the tag
-rw-r--r--runtime/autoload/man.vim5
1 files changed, 2 insertions, 3 deletions
diff --git a/runtime/autoload/man.vim b/runtime/autoload/man.vim
index 9280474516..08c6fc1eca 100644
--- a/runtime/autoload/man.vim
+++ b/runtime/autoload/man.vim
@@ -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 -> {