diff options
author | Jesse Luehrs <doy@tozt.net> | 2021-12-03 14:53:22 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2021-12-03 14:53:22 -0500 |
commit | 3271d413770f5c0d916caaa8d0dabac0b758f0f4 (patch) | |
tree | 6eae97f8a1e650b9d0f71ca6824b519959580fb4 /src | |
parent | 9c4c843baca54ff256bfdbdac231b4b6399b8550 (diff) | |
download | vt100-rust-3271d413770f5c0d916caaa8d0dabac0b758f0f4.tar.gz vt100-rust-3271d413770f5c0d916caaa8d0dabac0b758f0f4.zip |
we want to force wrapping here even if the cursor was already correct
Diffstat (limited to 'src')
-rw-r--r-- | src/row.rs | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -432,8 +432,7 @@ impl Row { // wrapped, we need to redraw the last character without erasing it to // position the cursor after the end of the line correctly so that // drawing the next line can just start writing and be wrapped. - if (!self.wrapped && prev.wrapped) - || (!prev.wrapped && self.wrapped && prev_pos.col < self.cols()) + if (!self.wrapped && prev.wrapped) || (!prev.wrapped && self.wrapped) { let end_pos = if self .get(self.cols() - 1) |