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. --- CHANGELOG.md | 1 + alacritty/src/input.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index cd670755..34c80e89 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -75,6 +75,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Use `\` instead of `\\` as path separators on Windows for logging config file location - Underline/strikeout drawn above visual bell - Terminal going transparent during visual bell +- Selection not being cleared when sending chars through a binding ### Removed 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