Skip to content

Commit

Permalink
fix(statusline): double escape #. Fixes #424
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed May 30, 2024
1 parent e5f3785 commit 9ddfd47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/trouble/view/text.lua
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ function M:statusline(opts)
for _, line in ipairs(self._lines) do
local parts = {}
for _, segment in ipairs(line) do
local str = segment.str:gsub("%%", "%%")
local str = segment.str:gsub("%%", "%%%%")
if segment.hl then
str = ("%%#%s#%s%%*"):format(segment.hl, str)
end
Expand Down

0 comments on commit 9ddfd47

Please sign in to comment.