diff options
author | Alvaro Sevilla <alvarosevilla95@gmail.com> | 2021-10-09 16:42:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-09 16:42:22 +0100 |
commit | fdc7ad65c9e98238bd3a7e43e34b3568b68e7e6c (patch) | |
tree | a3ba473577253bb2b160a557d4b3bbeec0f55db7 /lua | |
parent | 057808f95668f3497704487702528cfc080d58e4 (diff) | |
parent | c5daa87230e0fbd677955e350b671a1059aa9415 (diff) | |
download | minitab.nvim-fdc7ad65c9e98238bd3a7e43e34b3568b68e7e6c.tar.xz minitab.nvim-fdc7ad65c9e98238bd3a7e43e34b3568b68e7e6c.zip |
Merge pull request #9 from rstacruz/patch-1
Fix "attempt to concatenate local 'hl'" error
Diffstat (limited to '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 |