diff options
Diffstat (limited to 'src/render/stream.rs')
| -rw-r--r-- | src/render/stream.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/stream.rs b/src/render/stream.rs index 6ff6ea7..d2ac6ef 100644 --- a/src/render/stream.rs +++ b/src/render/stream.rs @@ -204,5 +204,5 @@ fn split_line_tail(text: &str) -> (&str, &str) { fn need_rows(text: &str, columns: u16) -> u16 { let buffer_width = display_width(text).max(1) as u16; - (buffer_width + columns - 1) / columns + buffer_width.div_ceil(columns) } |
