diff options
author | Roman Shmatov <romanshmatov@gmail.com> | 2017-04-04 17:08:10 +0500 |
---|---|---|
committer | Joe Wilm <jwilm@users.noreply.github.com> | 2017-04-04 09:03:33 -0700 |
commit | 302ba5adc6070cb1592026a2441c4922c7112dcc (patch) | |
tree | 85b4d62ad1e04ff9ca0a29e83d4963050b7f22a7 /src/term | |
parent | 9acd612b23ebd43511113a5c704ebbf5aca3cafc (diff) | |
download | alacritty-302ba5adc6070cb1592026a2441c4922c7112dcc.tar.gz alacritty-302ba5adc6070cb1592026a2441c4922c7112dcc.zip |
fix tabulation rendering
Diffstat (limited to 'src/term')
-rw-r--r-- | src/term/mod.rs | 6 |
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; + } } } |