mirror of
https://github.com/alacritty/alacritty.git
synced 2026-12-02 17:52:05 +03:00
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:
1 parent
972176adc3
commit
f6f5a73528
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
}
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user