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.
This commit is contained in:
Christian Duerr authored and Joe Wilm committed 2018-01-03 11:15:57 -08:00
1 parent 972176adc3
commit f6f5a73528
1 file changed
+1 -1
+1 -1
View File
@@ -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
}
};