✨ Improve readability by reformatting code for better line wrapping
This commit is contained in:
@@ -612,7 +612,9 @@ const onSearchInput = debounce(async () => {
|
|||||||
const matches = lineContent.toLowerCase().includes(searchTerm);
|
const matches = lineContent.toLowerCase().includes(searchTerm);
|
||||||
|
|
||||||
// Only update displayLines if it's within the visible range
|
// Only update displayLines if it's within the visible range
|
||||||
const displayIndex = displayLines.value.findIndex(l => l.lineNumber === actualIndex + 1);
|
const displayIndex = displayLines.value.findIndex(
|
||||||
|
l => l.lineNumber === actualIndex + 1
|
||||||
|
);
|
||||||
if (displayIndex !== -1) {
|
if (displayIndex !== -1) {
|
||||||
displayLines.value[displayIndex].hasMatch = matches;
|
displayLines.value[displayIndex].hasMatch = matches;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user