Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
pynappo committed Jan 17, 2024
1 parent 57e85f1 commit ffa0b2f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/dropbar/bar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ function dropbar_symbol_t:cat(plain)
self.cache.plain_str = self.icon .. self.name
return self.cache.plain_str
end
-- Escape `%` characters to prevent unintended statusline evaluation
local escaped_name = self.name:gsub('%%', '%%%%')
local icon_highlighted = hl(self.icon, self.icon_hl)
local name_highlighted = hl(escaped_name, self.name_hl)
Expand Down

0 comments on commit ffa0b2f

Please sign in to comment.