diff options
author | Christian Duerr <contact@christianduerr.com> | 2018-01-02 17:03:47 +0100 |
---|---|---|
committer | Joe Wilm <jwilm@users.noreply.github.com> | 2018-01-03 11:15:57 -0800 |
commit | f6f5a73528635d9da83f71bc9121dbb105eae0ad (patch) | |
tree | ff33cea3614f1aad49c288fab83f4d3528556977 | |
parent | 972176adc386d644a6d9ac2edbe285449db5ba44 (diff) | |
download | alacritty-f6f5a73528635d9da83f71bc9121dbb105eae0ad.tar.gz alacritty-f6f5a73528635d9da83f71bc9121dbb105eae0ad.zip |
Always clear selection
It seems like the common consensus is that even in mouse mode, the
selection should be cleared with a normal click.
If there is any reason why this should not be the case, please let me
know.
-rw-r--r-- | src/input.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input.rs b/src/input.rs index 9378b140..2fea68fd 100644 --- a/src/input.rs +++ b/src/input.rs @@ -352,13 +352,13 @@ impl<'a, A: ActionContext + 'a> Processor<'a, A> { ClickState::TripleClick }, _ => { + self.ctx.clear_selection(); let report_modes = mode::TermMode::MOUSE_REPORT_CLICK | mode::TermMode::MOUSE_MOTION; if !shift && self.ctx.terminal_mode().intersects(report_modes) { self.mouse_report(0); return; } - self.ctx.clear_selection(); ClickState::Click } }; |