From 6ab7eddfc14a7aed9b28a33cb496ad1e9732c1a5 Mon Sep 17 00:00:00 2001 From: Markus Dobler Date: Sat, 2 Jul 2022 22:09:20 +0200 Subject: [PATCH] fix(buf_switch): winid_from_tab_buf expects number --- lua/fzf-lua/actions.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/fzf-lua/actions.lua b/lua/fzf-lua/actions.lua index b99cb88..ebd1408 100644 --- a/lua/fzf-lua/actions.lua +++ b/lua/fzf-lua/actions.lua @@ -277,7 +277,7 @@ M.buf_del = function(selected, opts) end M.buf_switch = function(selected, _) - local tabnr = selected[1]:match("(%d+)%)") + local tabnr = tonumber(selected[1]:match("(%d+)%)")) if tabnr then vim.cmd("tabn " .. tabnr) else