From c5daa87230e0fbd677955e350b671a1059aa9415 Mon Sep 17 00:00:00 2001 From: "Rico Sta. Cruz" Date: Thu, 7 Oct 2021 14:34:06 +1100 Subject: Update init.lua --- lua/luatab/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/luatab/init.lua b/lua/luatab/init.lua index 65fe0ec..5f7823c 100644 --- a/lua/luatab/init.lua +++ b/lua/luatab/init.lua @@ -49,7 +49,7 @@ local function tabDevicon(bufnr, isSelected) local fg = h.extract_highlight_colors(devhl, 'fg') local bg = h.extract_highlight_colors('TabLineSel', 'bg') local hl = h.create_component_highlight_group({bg = bg, fg = fg}, devhl) - return (isSelected and '%#'..hl..'#' or '') .. dev .. (isSelected and '%#TabLineSel#' or '') .. ' ' + return ((isSelected and hl) and '%#'..hl..'#' or '') .. dev .. (isSelected and '%#TabLineSel#' or '') .. ' ' end return '' end -- cgit v1.2.3