aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2019-12-06 21:36:41 -0500
committerJesse Luehrs <doy@tozt.net>2019-12-06 23:28:04 -0500
commite156958580d91b3244e4806ef1a6aa18e900a823 (patch)
tree214b9680e05940e6487600565bf431691d7a916d /src
parent2ffb815341c9c97568d4553745eda8e470f5c37a (diff)
downloadvt100-rust-e156958580d91b3244e4806ef1a6aa18e900a823.tar.gz
vt100-rust-e156958580d91b3244e4806ef1a6aa18e900a823.zip
also move the wide char check inside the loop for ECH
Diffstat (limited to 'src')
-rw-r--r--src/grid.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/grid.rs b/src/grid.rs
index d4a8405..b29668f 100644
--- a/src/grid.rs
+++ b/src/grid.rs
@@ -473,8 +473,8 @@ impl Grid {
let size = self.size;
let pos = self.pos;
let row = self.current_row_mut();
- row.clear_wide(pos.col);
for col in pos.col..((pos.col + count).min(size.cols)) {
+ row.clear_wide(col);
row.erase(col as usize, attrs);
}
}