Skip to content

Commit

Permalink
fix click on match
Browse files Browse the repository at this point in the history
  • Loading branch information
Kr0nox committed Apr 18, 2024
1 parent 0726728 commit c6ed62d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions report-viewer/src/views/ComparisonView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ const panel2: Ref<typeof FilesContainer | null> = ref(null)
* @param line (line number)
*/
function showMatchInFirst(match: Match) {
panel1.value?.scrollTo(match.firstFile, match.startInFirst)
panel1.value?.scrollTo(match.firstFile, match.startInFirst.line)
}

/**
Expand All @@ -157,7 +157,7 @@ function showMatchInFirst(match: Match) {
* @param line (line number)
*/
function showMatchInSecond(match: Match) {
panel2.value?.scrollTo(match.secondFile, match.startInSecond)
panel2.value?.scrollTo(match.secondFile, match.startInSecond.line)
}

/**
Expand Down

0 comments on commit c6ed62d

Please sign in to comment.