diff options
| author | Tomasz N <przepompownia@users.noreply.github.com> | 2024-03-16 02:00:25 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-16 09:00:25 +0800 |
| commit | 25e729970712a89d2d125084e4df83418553d55d (patch) | |
| tree | 7a574b4a83cdf50f2fd9500771f668f53729b45c /runtime/lua | |
| parent | 102a72a21e2b5177516d2d3c44bd464e9b363bb9 (diff) | |
| download | rneovim-25e729970712a89d2d125084e4df83418553d55d.tar.gz rneovim-25e729970712a89d2d125084e4df83418553d55d.tar.bz2 rneovim-25e729970712a89d2d125084e4df83418553d55d.zip | |
feat(man): allow opening pages in current window (#27861)
With :hide modifier, open page in current window.
Diffstat (limited to 'runtime/lua')
| -rw-r--r-- | runtime/lua/man.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/man.lua b/runtime/lua/man.lua index ac15aff60c..a9004db3f4 100644 --- a/runtime/lua/man.lua +++ b/runtime/lua/man.lua @@ -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 |