aboutsummaryrefslogtreecommitdiffstats
path: root/src/row.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/row.rs')
-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)