diff options
author | Jesse Luehrs <doy@tozt.net> | 2021-11-20 03:37:00 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2021-11-20 03:37:00 -0500 |
commit | 87f5c5b59cdb2fdb4bd772f97c8896e7cba4e9fc (patch) | |
tree | a94b67dbb6adc9958b8b2949145c3391feaa8026 /src | |
parent | 65e6ff12a83f1a8eaf30f807ca688913a16df952 (diff) | |
download | vt100-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.rs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |