fix: selection invisible due to previous change
This commit is contained in:
+11
-12
@@ -3278,18 +3278,17 @@ impl ApplicationHandler<UserEvent> for App {
|
||||
})
|
||||
.map(|p| p.is_selecting)
|
||||
.unwrap_or(false);
|
||||
let is_selecting =
|
||||
(active_is_selecting || mouse_pane_is_selecting)
|
||||
|| self.mouse_down_pos.is_some();
|
||||
|
||||
let mouse_tracking = pane_geom
|
||||
.as_ref()
|
||||
.map(|g| self.has_mouse_tracking_for_pane(g.pane_id))
|
||||
.unwrap_or(false);
|
||||
|
||||
if is_selecting && mouse_tracking {
|
||||
let modifiers = self.get_mouse_modifiers();
|
||||
// Send mouse drag/motion events to PTY for apps like Neovim
|
||||
let is_selecting =
|
||||
active_is_selecting || mouse_pane_is_selecting;
|
||||
|
||||
let mouse_tracking = pane_geom
|
||||
.as_ref()
|
||||
.map(|g| self.has_mouse_tracking_for_pane(g.pane_id))
|
||||
.unwrap_or(false);
|
||||
|
||||
if (is_selecting || self.mouse_down_pos.is_some()) && mouse_tracking {
|
||||
let modifiers = self.get_mouse_modifiers();
|
||||
// Send mouse drag/motion events to PTY for apps like Neovim
|
||||
if let Some(renderer) = &self.renderer {
|
||||
if let Some(geom) = pane_geom {
|
||||
if let Some((col, row)) = renderer
|
||||
|
||||
Reference in New Issue
Block a user