Skip to content

Commit f63815e

Browse files
authored
Merge pull request #1435 from iliekturtles/line-length
Do not count `\r` as part of line width.
2 parents 20395c5 + a0efdf2 commit f63815e

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,6 @@ fn format_lines(text: &mut StringBuffer, name: &str, config: &Config, report: &m
481481

482482
for (c, b) in text.chars() {
483483
if c == '\r' {
484-
line_len += c.len_utf8();
485484
continue;
486485
}
487486

0 commit comments

Comments
 (0)