Fix sending chars with bind not clearing selection

Fixes #2925.
This commit is contained in:
Kirill Chibisov 2019-10-29 19:56:48 +03:00 committed by Christian Duerr
parent 9ff2838844
commit b735975486
2 changed files with 2 additions and 0 deletions

View File

@ -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

View File

@ -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())
},