From 87f5c5b59cdb2fdb4bd772f97c8896e7cba4e9fc Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sat, 20 Nov 2021 03:37:00 -0500 Subject: only do wrapping logic during diff if we weren't wrapping before --- src/row.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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) -- cgit v1.2.3-54-g00ecf