✨ Highlight search result matches in display lines
This commit is contained in:
@@ -418,6 +418,15 @@ const handleSearchWorkerMessage = event => {
|
|||||||
} else if (type === 'complete') {
|
} else if (type === 'complete') {
|
||||||
searchResults.value = results;
|
searchResults.value = results;
|
||||||
currentResultIndex.value = 0;
|
currentResultIndex.value = 0;
|
||||||
|
|
||||||
|
// Update displayLines with match highlighting
|
||||||
|
displayLines.value.forEach(line => (line.hasMatch = false));
|
||||||
|
results.forEach(lineIndex => {
|
||||||
|
if (displayLines.value[lineIndex]) {
|
||||||
|
displayLines.value[lineIndex].hasMatch = true;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
operationProgress.value.complete = true;
|
operationProgress.value.complete = true;
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
operationProgress.value.active = false;
|
operationProgress.value.active = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user