aboutsummaryrefslogtreecommitdiff
path: root/lua/luatab
diff options
context:
space:
mode:
authorRico Sta. Cruz <rstacruz@users.noreply.github.com>2021-10-07 14:34:06 +1100
committerGitHub <noreply@github.com>2021-10-07 14:34:06 +1100
commitc5daa87230e0fbd677955e350b671a1059aa9415 (patch)
treea3ba473577253bb2b160a557d4b3bbeec0f55db7 /lua/luatab
parent057808f95668f3497704487702528cfc080d58e4 (diff)
downloadminitab.nvim-c5daa87230e0fbd677955e350b671a1059aa9415.tar.xz
minitab.nvim-c5daa87230e0fbd677955e350b671a1059aa9415.zip
Update init.lua
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