aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--runtime/lua/man.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/lua/man.lua b/runtime/lua/man.lua
index a9004db3f4..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()
+ smods.silent = true
+ smods.keepalt = true
if smods.hide or (smods.tab == -1 and find_man()) then
- vim.cmd.tag({ target, mods = { silent = true, keepalt = true } })
+ vim.cmd.tag({ target, mods = smods })
else
- smods.silent = true
- smods.keepalt = true
vim.cmd.stag({ target, mods = smods })
end
end)