aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2021-12-03 14:53:22 -0500
committerJesse Luehrs <doy@tozt.net>2021-12-03 14:53:22 -0500
commit3271d413770f5c0d916caaa8d0dabac0b758f0f4 (patch)
tree6eae97f8a1e650b9d0f71ca6824b519959580fb4 /src
parent9c4c843baca54ff256bfdbdac231b4b6399b8550 (diff)
downloadvt100-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.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/row.rs b/src/row.rs
index 48c18eb..9acc55b 100644
--- a/src/row.rs
+++ b/src/row.rs
@@ -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)