Skip to content

Commit

Permalink
feat(bar): dropbar_symbol_t:cat() returns plain text when no bar is a…
Browse files Browse the repository at this point in the history
…ssociated
  • Loading branch information
bekaboo committed May 29, 2023
1 parent 6d526c7 commit 7ae61cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/dropbar/bar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7ae61cc

Please sign in to comment.