From 3271d413770f5c0d916caaa8d0dabac0b758f0f4 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Fri, 3 Dec 2021 14:53:22 -0500 Subject: we want to force wrapping here even if the cursor was already correct --- src/row.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') 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) -- cgit v1.2.3-54-g00ecf