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 2018-01-02 17:03:47 +01:00 committed by Joe Wilm
parent 972176adc3
commit f6f5a73528
1 changed files with 1 additions and 1 deletions

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
}
};