mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
fix(man): pass modifiers also to :tag (#27878)
There aren't really many modifiers that take an effect on :tag (except maybe :confirm, :unsilent, :verbose), but pass them for consistency.
This commit is contained in:
@@ -716,11 +716,11 @@ function M.open_page(count, smods, args)
|
|||||||
local target = ('%s(%s)'):format(name, sect)
|
local target = ('%s(%s)'):format(name, sect)
|
||||||
|
|
||||||
local ok, ret = pcall(function()
|
local ok, ret = pcall(function()
|
||||||
if smods.hide or (smods.tab == -1 and find_man()) then
|
|
||||||
vim.cmd.tag({ target, mods = { silent = true, keepalt = true } })
|
|
||||||
else
|
|
||||||
smods.silent = true
|
smods.silent = true
|
||||||
smods.keepalt = true
|
smods.keepalt = true
|
||||||
|
if smods.hide or (smods.tab == -1 and find_man()) then
|
||||||
|
vim.cmd.tag({ target, mods = smods })
|
||||||
|
else
|
||||||
vim.cmd.stag({ target, mods = smods })
|
vim.cmd.stag({ target, mods = smods })
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
Reference in New Issue
Block a user