From b7359754869a6e01901b6638d7c2ba68f91809dd Mon Sep 17 00:00:00 2001 From: Kirill Chibisov Date: Tue, 29 Oct 2019 19:56:48 +0300 Subject: Fix sending chars with bind not clearing selection Fixes #2925. --- alacritty/src/input.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'alacritty/src') diff --git a/alacritty/src/input.rs b/alacritty/src/input.rs index a3148820..b9b99565 100644 --- a/alacritty/src/input.rs +++ b/alacritty/src/input.rs @@ -143,6 +143,7 @@ impl Execute for Action { fn execute>(&self, ctx: &mut A, mouse_mode: bool) { match *self { Action::Esc(ref s) => { + ctx.clear_selection(); ctx.scroll(Scroll::Bottom); ctx.write_to_pty(s.clone().into_bytes()) }, -- cgit