aboutsummaryrefslogtreecommitdiffstats
path: root/src/term.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/term.rs
parent7b9db3d75ce39c97a5002afb22fbcee0ef429a48 (diff)
downloadvt100-rust-6203def48a689e30677a63b03d755aa0740e6e18.tar.gz
vt100-rust-6203def48a689e30677a63b03d755aa0740e6e18.zip
a few more movement tweaks
Diffstat (limited to 'src/term.rs')
-rw-r--r--src/term.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/term.rs b/src/term.rs
index 5b99841..170e2ca 100644
--- a/src/term.rs
+++ b/src/term.rs
@@ -314,7 +314,7 @@ impl BufWrite for MoveFromTo {
{
crate::term::MoveRight::new(self.to.col - self.from.col)
.write_buf(buf);
- } else {
+ } else if self.to != self.from {
crate::term::MoveTo::new(self.to).write_buf(buf);
}
}