aboutsummaryrefslogtreecommitdiffstats
path: root/src/grid.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2019-11-11 15:26:09 -0500
committerJesse Luehrs <doy@tozt.net>2019-11-11 15:29:19 -0500
commit6203def48a689e30677a63b03d755aa0740e6e18 (patch)
treef24d51f352fb92302b962e16745db8fbbbdc8dab /src/grid.rs
parent7b9db3d75ce39c97a5002afb22fbcee0ef429a48 (diff)
downloadvt100-rust-6203def48a689e30677a63b03d755aa0740e6e18.tar.gz
vt100-rust-6203def48a689e30677a63b03d755aa0740e6e18.zip
a few more movement tweaks
Diffstat (limited to 'src/grid.rs')
-rw-r--r--src/grid.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/grid.rs b/src/grid.rs
index 62c25ab..2705834 100644
--- a/src/grid.rs
+++ b/src/grid.rs
@@ -204,9 +204,7 @@ impl Grid {
wrapping = row.wrapped();
}
- if prev_pos != self.pos {
- crate::term::MoveTo::new(self.pos).write_buf(contents);
- }
+ crate::term::MoveFromTo::new(prev_pos, self.pos).write_buf(contents);
prev_attrs
}
@@ -238,9 +236,7 @@ impl Grid {
wrapping = row.wrapped();
}
- if prev_pos != self.pos {
- crate::term::MoveTo::new(self.pos).write_buf(contents);
- }
+ crate::term::MoveFromTo::new(prev_pos, self.pos).write_buf(contents);
prev_attrs
}