diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-03-16 09:56:58 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-16 09:56:58 +0800 |
commit | 59aadf33efc2755ef52ff224e7d279a9ee9cd5dd (patch) | |
tree | 5e9b84dfbdc63346fbc0cfaa7d3ed7ecdcb88f1e | |
parent | 25e729970712a89d2d125084e4df83418553d55d (diff) | |
download | rneovim-59aadf33efc2755ef52ff224e7d279a9ee9cd5dd.tar.gz rneovim-59aadf33efc2755ef52ff224e7d279a9ee9cd5dd.tar.bz2 rneovim-59aadf33efc2755ef52ff224e7d279a9ee9cd5dd.zip |
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.
-rw-r--r-- | runtime/lua/man.lua | 6 |
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) |