mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07: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:
parent
e2a9d71521
commit
3c48d3c83f
@ -420,6 +420,10 @@ local function extract_sect_and_name_path(path)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local function find_man()
|
local function find_man()
|
||||||
|
if vim.bo.filetype == 'man' then
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
|
||||||
local win = 1
|
local win = 1
|
||||||
while win <= fn.winnr('$') do
|
while win <= fn.winnr('$') do
|
||||||
local buf = fn.winbufnr(win)
|
local buf = fn.winbufnr(win)
|
||||||
|
Loading…
Reference in New Issue
Block a user