fix(buf_switch): winid_from_tab_buf expects number

main
Markus Dobler 2 years ago committed by ibhagwan
parent 786d06bc51
commit 6ab7eddfc1

@ -277,7 +277,7 @@ M.buf_del = function(selected, opts)
end end
M.buf_switch = function(selected, _) M.buf_switch = function(selected, _)
local tabnr = selected[1]:match("(%d+)%)") local tabnr = tonumber(selected[1]:match("(%d+)%)"))
if tabnr then if tabnr then
vim.cmd("tabn " .. tabnr) vim.cmd("tabn " .. tabnr)
else else

Loading…
Cancel
Save