mirror of
https://github.com/neovim/neovim.git
synced 2026-04-22 07:15:34 +00:00
feat(man): allow opening pages in current window (#27861)
With :hide modifier, open page in current window.
This commit is contained in:
@@ -716,7 +716,7 @@ function M.open_page(count, smods, args)
|
||||
local target = ('%s(%s)'):format(name, sect)
|
||||
|
||||
local ok, ret = pcall(function()
|
||||
if smods.tab == -1 and find_man() then
|
||||
if smods.hide or (smods.tab == -1 and find_man()) then
|
||||
vim.cmd.tag({ target, mods = { silent = true, keepalt = true } })
|
||||
else
|
||||
smods.silent = true
|
||||
|
||||
Reference in New Issue
Block a user