man.vim: :Man should not change global value of 'tagfunc' option (#13926)

This commit is contained in:
最上川
2021-02-14 00:54:03 +08:00
committed by GitHub
parent 52397aaa0d
commit 8399f48ca9

View File

@@ -51,7 +51,7 @@ function! man#open_page(count, mods, ...) abort
let [l:buf, l:save_tfu] = [bufnr(), &tagfunc]
try
set tagfunc=man#goto_tag
setlocal tagfunc=man#goto_tag
let l:target = l:name . '(' . l:sect . ')'
if a:mods !~# 'tab' && s:find_man()
execute 'silent keepalt tag' l:target