aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2021-11-20 03:37:00 -0500
committerJesse Luehrs <doy@tozt.net>2021-11-20 03:37:00 -0500
commit87f5c5b59cdb2fdb4bd772f97c8896e7cba4e9fc (patch)
treea94b67dbb6adc9958b8b2949145c3391feaa8026 /src
parent65e6ff12a83f1a8eaf30f807ca688913a16df952 (diff)
downloadvt100-rust-87f5c5b59cdb2fdb4bd772f97c8896e7cba4e9fc.tar.gz
vt100-rust-87f5c5b59cdb2fdb4bd772f97c8896e7cba4e9fc.zip
only do wrapping logic during diff if we weren't wrapping before
Diffstat (limited to 'src')
-rw-r--r--src/row.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/row.rs b/src/row.rs
index 11763c1..7347568 100644
--- a/src/row.rs
+++ b/src/row.rs
@@ -421,7 +421,7 @@ impl Row {
// 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)
- || (self.wrapped && prev_pos.col < self.cols())
+ || (!prev.wrapped && self.wrapped && prev_pos.col < self.cols())
{
let end_pos = if self
.get(self.cols() - 1)