diff options
Diffstat (limited to 'src/row.rs')
-rw-r--r-- | src/row.rs | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -85,6 +85,7 @@ impl Row { contents: &mut String, start: u16, width: u16, + wrapping: bool, ) { let mut prev_was_wide = false; @@ -112,6 +113,9 @@ impl Row { prev_col += if cell.is_wide() { 2 } else { 1 }; } } + if prev_col == start && wrapping { + contents.push('\n'); + } } pub fn write_contents_formatted( |