Improve readability by reformatting code for better line wrapping

This commit is contained in:
2026-01-28 20:33:22 +00:00
parent b953f5b9dc
commit 1cc137b9bb

View File

@@ -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;
} }