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:
parent
972176adc3
commit
f6f5a73528
|
@ -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
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue