mirror of https://git.jolheiser.com/ugit.git
parent
0ae76c9d74
commit
4fbb4cf289
|
@ -17,7 +17,7 @@ func (s SearchContext) DedupeResults() [][]git.GrepResult {
|
|||
var idx int
|
||||
for _, result := range s.Results {
|
||||
if result.File == currentFile {
|
||||
results[idx] = append(results[idx], result)
|
||||
results[idx-1] = append(results[idx-1], result)
|
||||
continue
|
||||
}
|
||||
results = append(results, []git.GrepResult{result})
|
||||
|
|
|
@ -27,7 +27,7 @@ func (s SearchContext) DedupeResults() [][]git.GrepResult {
|
|||
var idx int
|
||||
for _, result := range s.Results {
|
||||
if result.File == currentFile {
|
||||
results[idx] = append(results[idx], result)
|
||||
results[idx-1] = append(results[idx-1], result)
|
||||
continue
|
||||
}
|
||||
results = append(results, []git.GrepResult{result})
|
||||
|
|
Loading…
Reference in New Issue