diff options
author | RĂ©mi Garde <remi.garde@free.fr> | 2020-04-21 01:38:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-20 23:38:25 +0000 |
commit | 34daa1237b441aa87bab74db837f2bf1a027cbe3 (patch) | |
tree | 2254d7a48ccbe8cf3fb4b2a64282d64a25807468 | |
parent | 03bce99ab69d10d8d8f5f8b1410f360f40f5b842 (diff) | |
download | alacritty-34daa1237b441aa87bab74db837f2bf1a027cbe3.tar.gz alacritty-34daa1237b441aa87bab74db837f2bf1a027cbe3.zip |
Clear selection on grid swap
Fixes #3290.
-rw-r--r-- | CHANGELOG.md | 1 | ||||
-rw-r--r-- | alacritty_terminal/src/term/mod.rs | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 8011be88..8aa280e4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,6 +26,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed - Tabstops not being reset with `reset` +- Selection not cleared when switching between main and alt grid ## 0.4.2 diff --git a/alacritty_terminal/src/term/mod.rs b/alacritty_terminal/src/term/mod.rs index 8a621a32..dbfd3f49 100644 --- a/alacritty_terminal/src/term/mod.rs +++ b/alacritty_terminal/src/term/mod.rs @@ -1195,6 +1195,7 @@ impl<T> Term<T> { let template = self.cursor.template; self.grid.region_mut(..).each(|c| c.reset(&template)); } + self.grid.selection = None; self.alt = !self.alt; mem::swap(&mut self.grid, &mut self.alt_grid); |