Skip to content

Commit aad6bfd

Browse files
fix: avoid empty result for a file match
1 parent b270214 commit aad6bfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/webview/hooks/useSearch.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ export function dismissOneMatch(match: DisplayResult) {
207207
})
208208
break
209209
}
210-
grouped = [...grouped]
210+
grouped = grouped.filter(g => g[1].length > 0)
211211
notify()
212212
}
213213
export function dismissOneFile(filePath: string) {

0 commit comments

Comments
 (0)