From 79bae9df835eb0f80778b6eb48d0a8096b1580ce Mon Sep 17 00:00:00 2001 From: Alvaro Sevilla Date: Tue, 13 Jul 2021 19:49:22 +0200 Subject: Fix indentation + use local variables --- lua/luatab/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua') diff --git a/lua/luatab/init.lua b/lua/luatab/init.lua index 5e419c2..6a5f9f9 100644 --- a/lua/luatab/init.lua +++ b/lua/luatab/init.lua @@ -11,7 +11,7 @@ local function tabName(bufnr) elseif file:sub(file:len()-2, file:len()) == 'FZF' then return 'FZF' elseif buftype == 'terminal' then - _, mtch = string.match(file, "term:(.*):(%a+)") + local _, mtch = string.match(file, "term:(.*):(%a+)") return mtch ~= nil and mtch or 'zsh' elseif file == '' then return '[No Name]' -- cgit v1.2.3