parent
01e603519a
commit
3d7a789fd3
|
@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
### Changed
|
||||
|
||||
- Block cursor is no longer inverted at the start/end of a selection
|
||||
- Preserve selection on non-LMB or mouse mode clicks
|
||||
|
||||
## 0.4.2-dev
|
||||
|
||||
|
|
|
@ -504,6 +504,10 @@ impl<'a, T: EventListener, A: ActionContext<T>> Processor<'a, T, A> {
|
|||
ClickState::TripleClick
|
||||
}
|
||||
_ => {
|
||||
if button == MouseButton::Left
|
||||
&& (self.ctx.modifiers().shift()
|
||||
|| !self.ctx.terminal().mode().intersects(TermMode::MOUSE_MODE))
|
||||
{
|
||||
// Don't launch URLs if this click cleared the selection
|
||||
self.ctx.mouse_mut().block_url_launcher = !self.ctx.selection_is_empty();
|
||||
|
||||
|
@ -522,6 +526,7 @@ impl<'a, T: EventListener, A: ActionContext<T>> Processor<'a, T, A> {
|
|||
// Update vi mode cursor position on click
|
||||
self.ctx.terminal_mut().vi_mode_cursor.point = point;
|
||||
}
|
||||
}
|
||||
|
||||
if !self.ctx.modifiers().shift() && self.ctx.mouse_mode() {
|
||||
let code = match button {
|
||||
|
|
Loading…
Reference in New Issue