summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Chibisov <wchibisovkirill@gmail.com>2019-10-29 19:56:48 +0300
committerChristian Duerr <contact@christianduerr.com>2019-10-29 17:56:48 +0100
commitb7359754869a6e01901b6638d7c2ba68f91809dd (patch)
tree94c49eb2147ab2ee6de993ae2f8a515b0a0bed82
parent9ff2838844df45b6a1f20621ced870e9e1855ec8 (diff)
downloadalacritty-b7359754869a6e01901b6638d7c2ba68f91809dd.tar.gz
alacritty-b7359754869a6e01901b6638d7c2ba68f91809dd.zip
Fix sending chars with bind not clearing selection
Fixes #2925.
-rw-r--r--CHANGELOG.md1
-rw-r--r--alacritty/src/input.rs1
2 files changed, 2 insertions, 0 deletions
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<T: EventListener> Execute<T> for Action {
fn execute<A: ActionContext<T>>(&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())
},