aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/term/mod.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/term/mod.rs b/src/term/mod.rs
index 44fa9e33..b88a0d98 100644
--- a/src/term/mod.rs
+++ b/src/term/mod.rs
@@ -1199,13 +1199,17 @@ impl ansi::Handler for Term {
while col < self.grid.num_cols() && count != 0 {
count -= 1;
loop {
- if (col + 1) == self.grid.num_cols() || self.tabs[*col as usize] {
+ if (col + 1) == self.grid.num_cols() {
break;
}
self.insert_blank(Column(1));
col += 1;
+
+ if self.tabs[*col as usize] {
+ break;
+ }
}
}