✨ Highlight search result matches in display lines
This commit is contained in:
@@ -418,6 +418,15 @@ const handleSearchWorkerMessage = event => {
|
||||
} else if (type === 'complete') {
|
||||
searchResults.value = results;
|
||||
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;
|
||||
setTimeout(() => {
|
||||
operationProgress.value.active = false;
|
||||
|
||||
Reference in New Issue
Block a user