Skip to content

Commit

Permalink
Merge pull request #160 from benlubas/fix/different_conceal
Browse files Browse the repository at this point in the history
fix: account for char with multiple conceal hl
  • Loading branch information
3rd authored Apr 25, 2024
2 parents 2d4b479 + a61323f commit cdf1be9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lua/image/renderer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,10 @@ local render = function(image)
{ semantic_tokens = false, syntax = false, extmarks = false, treesitter = true }
)
for _, hl in ipairs(res.treesitter) do
if hl.capture == "conceal" and not extmark_concealed[i + 1] then sum = sum + 1 end
if hl.capture == "conceal" and not extmark_concealed[i + 1] then
sum = sum + 1
break
end
end
end
extmark_x_offset = extmark_x_offset - sum
Expand Down

0 comments on commit cdf1be9

Please sign in to comment.