Skip to content

Commit 7310021

Browse files
committed
fix: Let the line number width start at 1
fix: rust-lang#57
1 parent 90fa23d commit 7310021

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/renderer/display_list.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ impl<'a> Display for DisplayList<'a> {
7979
})
8080
});
8181
let lineno_width = if lineno_width == 0 {
82-
lineno_width
82+
1
8383
} else if self.anonymized_line_numbers {
8484
ANONYMIZED_LINE_NUM.len()
8585
} else {

0 commit comments

Comments
 (0)