diff options
Diffstat (limited to 'src/string.rs')
| -rw-r--r-- | src/string.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/string.rs b/src/string.rs index a5453c0a8ed..39eaf57d72e 100644 --- a/src/string.rs +++ b/src/string.rs @@ -72,7 +72,8 @@ pub fn rewrite_string<'a>( // succeed. let mut max_chars = shape .width - .checked_sub(fmt.opener.len() + ender_length + 1)? + 1; + .checked_sub(fmt.opener.len() + ender_length + 1)? + + 1; // Snip a line at a time from `orig` until it is used up. Push the snippet // onto result. |
