Skip to content

Commit

Permalink
fix. clear all hl if no diff
Browse files Browse the repository at this point in the history
  • Loading branch information
Chen-Yulin committed Oct 24, 2024
1 parent 287d0d5 commit 91b1ec8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/colorful_diff/buffer_change.lua
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ local function detect_and_highlight()
myTint.clearTint(bufnr, block.diff_e + 1, diffblocks[i - 1].origin_s - 1)
end
end
else
myTint.clearTint(bufnr, 1, -1)
end
end

Expand Down

0 comments on commit 91b1ec8

Please sign in to comment.