diff options
| author | Stanislav Tkach <stanislav.tkach@xdev.re> | 2017-04-19 17:49:03 +0300 |
|---|---|---|
| committer | Stanislav Tkach <stanislav.tkach@xdev.re> | 2017-04-19 17:49:03 +0300 |
| commit | b53aeebbcff40b91c1c19424db2393118a5ae335 (patch) | |
| tree | c244b72dcfda6dcb7424dba451c803d340a4de85 /src | |
| parent | b4833a8c581f92e87eeb0f5a6f11719f4eb94092 (diff) | |
Fix line length calculation (should be in chars, not bytes)
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs index be4579faba2..ddee0cdc286 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -511,7 +511,7 @@ fn format_lines(text: &mut StringBuffer, name: &str, config: &Config, report: &m last_wspace = None; } else { newline_count = 0; - line_len += c.len_utf8(); + line_len += 1; if c.is_whitespace() { if last_wspace.is_none() { last_wspace = Some(b); |
