summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRoman Shmatov <romanshmatov@gmail.com>2017-04-04 17:08:10 +0500
committerJoe Wilm <jwilm@users.noreply.github.com>2017-04-04 09:03:33 -0700
commit302ba5adc6070cb1592026a2441c4922c7112dcc (patch)
tree85b4d62ad1e04ff9ca0a29e83d4963050b7f22a7 /src
parent9acd612b23ebd43511113a5c704ebbf5aca3cafc (diff)
fix tabulation rendering
Diffstat (limited to 'src')
-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;
+ }
}
}