aboutsummaryrefslogtreecommitdiff
path: root/lua/luatab
diff options
context:
space:
mode:
Diffstat (limited to 'lua/luatab')
-rw-r--r--lua/luatab/init.lua2
1 files changed, 1 insertions, 1 deletions
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