mirror of
				https://github.com/neovim/neovim.git
				synced 2025-11-04 09:44:31 +00:00 
			
		
		
		
	man.vim: :Man should not change global value of 'tagfunc' option (#13926)
				
					
				
			This commit is contained in:
		@@ -51,7 +51,7 @@ function! man#open_page(count, mods, ...) abort
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  let [l:buf, l:save_tfu] = [bufnr(), &tagfunc]
 | 
					  let [l:buf, l:save_tfu] = [bufnr(), &tagfunc]
 | 
				
			||||||
  try
 | 
					  try
 | 
				
			||||||
    set tagfunc=man#goto_tag
 | 
					    setlocal tagfunc=man#goto_tag
 | 
				
			||||||
    let l:target = l:name . '(' . l:sect . ')'
 | 
					    let l:target = l:name . '(' . l:sect . ')'
 | 
				
			||||||
    if a:mods !~# 'tab' && s:find_man()
 | 
					    if a:mods !~# 'tab' && s:find_man()
 | 
				
			||||||
      execute 'silent keepalt tag' l:target
 | 
					      execute 'silent keepalt tag' l:target
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user