diff options
author | Rico Sta. Cruz <rstacruz@users.noreply.github.com> | 2021-10-07 14:34:06 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-07 14:34:06 +1100 |
commit | c5daa87230e0fbd677955e350b671a1059aa9415 (patch) | |
tree | a3ba473577253bb2b160a557d4b3bbeec0f55db7 /lua/luatab/init.lua | |
parent | 057808f95668f3497704487702528cfc080d58e4 (diff) | |
download | minitab.nvim-c5daa87230e0fbd677955e350b671a1059aa9415.tar.xz minitab.nvim-c5daa87230e0fbd677955e350b671a1059aa9415.zip |
Update init.lua
Diffstat (limited to 'lua/luatab/init.lua')
-rw-r--r-- | lua/luatab/init.lua | 2 |
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 |