summaryrefslogtreecommitdiff
path: root/alacritty_terminal
diff options
context:
space:
mode:
authorRĂ©mi Garde <remi.garde@free.fr>2020-04-21 01:38:25 +0200
committerGitHub <noreply@github.com>2020-04-20 23:38:25 +0000
commit34daa1237b441aa87bab74db837f2bf1a027cbe3 (patch)
tree2254d7a48ccbe8cf3fb4b2a64282d64a25807468 /alacritty_terminal
parent03bce99ab69d10d8d8f5f8b1410f360f40f5b842 (diff)
downloadalacritty-34daa1237b441aa87bab74db837f2bf1a027cbe3.tar.gz
alacritty-34daa1237b441aa87bab74db837f2bf1a027cbe3.zip
Clear selection on grid swap
Fixes #3290.
Diffstat (limited to 'alacritty_terminal')
-rw-r--r--alacritty_terminal/src/term/mod.rs1
1 files changed, 1 insertions, 0 deletions
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);