Skip to content

Commit

Permalink
fix: Let the line number width start at 1
Browse files Browse the repository at this point in the history
  • Loading branch information
chengr4 committed Aug 27, 2024
1 parent 90fa23d commit 7db46b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/display_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ impl<'a> Display for DisplayList<'a> {
})
});
let lineno_width = if lineno_width == 0 {
lineno_width
1
} else if self.anonymized_line_numbers {
ANONYMIZED_LINE_NUM.len()
} else {
Expand Down

0 comments on commit 7db46b4

Please sign in to comment.