aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/man.lua
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/lua/man.lua')
-rw-r--r--runtime/lua/man.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/lua/man.lua b/runtime/lua/man.lua
index ac15aff60c..58a69f90dd 100644
--- a/runtime/lua/man.lua
+++ b/runtime/lua/man.lua
@@ -716,11 +716,11 @@ 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
- vim.cmd.tag({ target, mods = { silent = true, keepalt = true } })
+ smods.silent = true
+ smods.keepalt = true
+ if smods.hide or (smods.tab == -1 and find_man()) then
+ vim.cmd.tag({ target, mods = smods })
else
- smods.silent = true
- smods.keepalt = true
vim.cmd.stag({ target, mods = smods })
end
end)