From f80e8eca73a16f450c66902fe66982fb228654fb Mon Sep 17 00:00:00 2001 From: Kirill Chibisov Date: Mon, 30 Mar 2020 11:46:20 +0300 Subject: [PATCH] Fix tabstops not being reset with 'reset' --- CHANGELOG.md | 3 +++ alacritty_terminal/src/term/mod.rs | 1 + 2 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c61cf706..e5145b64 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Block cursor is no longer inverted at the start/end of a selection - Preserve selection on non-LMB or mouse mode clicks +### Fixed +- Tabstops not being reset with `reset` + ## 0.4.2-dev ### Packaging diff --git a/alacritty_terminal/src/term/mod.rs b/alacritty_terminal/src/term/mod.rs index 65c2899e..8a621a32 100644 --- a/alacritty_terminal/src/term/mod.rs +++ b/alacritty_terminal/src/term/mod.rs @@ -1999,6 +1999,7 @@ impl Handler for Term { self.grid.reset(&Cell::default()); self.alt_grid.reset(&Cell::default()); self.scroll_region = Line(0)..self.grid.num_lines(); + self.tabs = TabStops::new(self.grid.num_cols()); self.title_stack = Vec::new(); self.title = None; }