diff options
Diffstat (limited to 'plugins/nonicons.lua')
-rw-r--r-- | plugins/nonicons.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/nonicons.lua b/plugins/nonicons.lua index b207d58..3dd0957 100644 --- a/plugins/nonicons.lua +++ b/plugins/nonicons.lua @@ -39,7 +39,7 @@ local extension_icons = { [".swift"] = { "#e37933", "" }, [".ts"] = { "#519aba", "" }, -- TypeScript [".elm"] = { "#519aba", "" }, - [".diff"] = { "#41535b", "" }, + [".diff"] = { "#41535b", "" }, [".patch"] = { "#41535b", "" }, [".ex"] = { "#a074c4", "" }, [".exs"] = { "#a074c4", "" }, -- Elixir -- Following without special icon: [".awk"] = { "#4d5a5e", "" }, @@ -68,6 +68,7 @@ end -- Replace original draw function TreeView:draw() + if not self.visible then return end self:draw_background(style.background2) local icon_width = icon_font:get_width("") |