diff options
Diffstat (limited to 'src/tui/ui.rs')
| -rw-r--r-- | src/tui/ui.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tui/ui.rs b/src/tui/ui.rs index 9edf5af..0fc1ec9 100644 --- a/src/tui/ui.rs +++ b/src/tui/ui.rs @@ -147,7 +147,7 @@ fn count_wrapped_lines(lines: &[Line], width: usize) -> usize { for word in full_text.split_inclusive(' ') { let word_width = UnicodeWidthStr::width(word); - if current_width + word_width > width { + if current_width > 0 && current_width + word_width > width { row_count += 1; current_width = word_width; } else { |
