Fix highlighting of regions that are matched multiple times

Fix #3596
This commit is contained in:
Junegunn Choi committed 2024-01-23 12:19:32 +09:00
1 parent 62a916bc24
commit 2a8b65e105
2 files changed
+4 -2

No files matched your search

+1 -1
View File
@@ -120,7 +120,7 @@ func TestColorOffset(t *testing.T) {
// ++++++++ ++++++++++
// --++++++++-- --++++++++++---
offsets := []Offset{{5, 15}, {25, 35}}
offsets := []Offset{{5, 15}, {10, 12}, {25, 35}}
item := Result{
item: &Item{
colors: &[]ansiOffset{