Skip to content

Commit

Permalink
Decrease lastLine by 1
Browse files Browse the repository at this point in the history
  • Loading branch information
pzdr7 committed Apr 24, 2024
1 parent 37a5553 commit 0f4b7d5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ export class CodeEditorTutorAssessmentContainerComponent implements OnInit, OnDe
highlightChangedLines(selectedFile: string) {
if (selectedFile && this.codeEditorContainer?.selectedFile) {
if (!this.templateFileSession[selectedFile]) {
const lastLine = this.codeEditorContainer.getNumberOfLines();
const lastLine = this.codeEditorContainer.getNumberOfLines() - 1;
this.highlightLines(0, lastLine);
} else {
// Calculation of the diff, see: https://github.com/google/diff-match-patch/wiki/Line-or-Word-Diffs
Expand Down

0 comments on commit 0f4b7d5

Please sign in to comment.