aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-09-06 10:32:23 +0200
committerGitHub <noreply@github.com>2022-09-06 10:32:23 +0200
commit05893aea391d91e159a41f03acc20049c7049510 (patch)
tree674c6b05a33b5276bf5897a21fdda4c7687ff69b /runtime
parent5b8d6e0b3200c5cb9d98cbdb4ed0afe2b4edd38d (diff)
parent1ef7720567b08caec0c077605fb2a01a9d6eafbc (diff)
downloadrneovim-05893aea391d91e159a41f03acc20049c7049510.tar.gz
rneovim-05893aea391d91e159a41f03acc20049c7049510.tar.bz2
rneovim-05893aea391d91e159a41f03acc20049c7049510.zip
Merge pull request #20039 from zeertzjq/cmod-tab
fix(api)!: correctly deal with number before :tab
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/api.txt2
-rw-r--r--runtime/lua/man.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/runtime/doc/api.txt b/runtime/doc/api.txt
index 063e17ded9..ea562e60b6 100644
--- a/runtime/doc/api.txt
+++ b/runtime/doc/api.txt
@@ -1848,7 +1848,7 @@ nvim_parse_cmd({str}, {opts}) *nvim_parse_cmd()*
• keeppatterns: (boolean) |:keeppatterns|.
• lockmarks: (boolean) |:lockmarks|.
• noswapfile: (boolean) |:noswapfile|.
- • tab: (integer) |:tab|.
+ • tab: (integer) |:tab|. -1 when omitted.
• verbose: (integer) |:verbose|. -1 when omitted.
• vertical: (boolean) |:vertical|.
• split: (string) Split modifier string, is an empty string when
diff --git a/runtime/lua/man.lua b/runtime/lua/man.lua
index 4b8239ce74..82ed0305f7 100644
--- a/runtime/lua/man.lua
+++ b/runtime/lua/man.lua
@@ -671,7 +671,7 @@ function M.open_page(count, smods, args)
local target = ('%s(%s)'):format(name, sect)
local ok, ret = pcall(function()
- if not smods.tab and find_man() then
+ if smods.tab == -1 and find_man() then
vim.cmd.tag({ target, mods = { silent = true, keepalt = true } })
else
smods.silent = true