Skip to content

Commit

Permalink
fix: highlights when trim_leading_whitespace = 'all'
Browse files Browse the repository at this point in the history
  • Loading branch information
stevearc committed Dec 25, 2024
1 parent cde0906 commit 87dae0f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/quicker/display.lua
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,9 @@ local function add_item_highlights_from_buf(qfbufnr, item, line, lnum)
offset = offset - prefix:len()
end
offset = offset - src_space + item_space
if config.trim_leading_whitespace == "all" then
offset = offset - item_space
end

-- Add treesitter highlights
if config.highlight.treesitter then
Expand Down

0 comments on commit 87dae0f

Please sign in to comment.