From 7ae61cc14877dcfe5e127b8c66c87247b1ef2eaa Mon Sep 17 00:00:00 2001 From: bekaboo <18127878294@qq.com> Date: Mon, 29 May 2023 18:05:28 -0500 Subject: [PATCH] feat(bar): dropbar_symbol_t:cat() returns plain text when no bar is associated --- lua/dropbar/bar.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/dropbar/bar.lua b/lua/dropbar/bar.lua index 85a9abe5..b6b542d5 100644 --- a/lua/dropbar/bar.lua +++ b/lua/dropbar/bar.lua @@ -60,7 +60,7 @@ end ---@param plain boolean? ---@return string function dropbar_symbol_t:cat(plain) - if plain then + if plain or not self.bar then return self.icon .. self.name end local icon_highlighted = hl(self.icon, self.icon_hl)