From f6f5a73528635d9da83f71bc9121dbb105eae0ad Mon Sep 17 00:00:00 2001 From: Christian Duerr Date: Tue, 2 Jan 2018 17:03:47 +0100 Subject: 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. --- src/input.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } }; -- cgit v1.2.3-54-g00ecf