mirror of
				https://github.com/neovim/neovim.git
				synced 2025-11-04 09:44:31 +00:00 
			
		
		
		
	fix(man.lua): open in current window if it's already a man page (#21987)
This matters when there are multiple man page windows open.
This commit is contained in:
		@@ -420,6 +420,10 @@ local function extract_sect_and_name_path(path)
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
local function find_man()
 | 
			
		||||
  if vim.bo.filetype == 'man' then
 | 
			
		||||
    return true
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  local win = 1
 | 
			
		||||
  while win <= fn.winnr('$') do
 | 
			
		||||
    local buf = fn.winbufnr(win)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user