mirror of
https://github.com/TabbyML/tabby
synced 2024-11-22 00:08:06 +00:00
fix(ui): correct the result counts of code searching (#2609)
This commit is contained in:
parent
119953aee1
commit
442247fd61
@ -47,7 +47,7 @@ export const CodeSearchResultView = (props: CodeSearchResultViewProps) => {
|
||||
return sum + _matchCount
|
||||
}, 0)
|
||||
|
||||
count += curCount
|
||||
count += Math.max(curCount, 1)
|
||||
}
|
||||
const format = count < 1000 ? '0' : '0.0a'
|
||||
return numeral(count).format(format)
|
||||
|
Loading…
Reference in New Issue
Block a user