diff --git a/helix-term/src/ui/popup.rs b/helix-term/src/ui/popup.rs index abc3e6c32..4c8c1ebd9 100644 --- a/helix-term/src/ui/popup.rs +++ b/helix-term/src/ui/popup.rs @@ -198,7 +198,7 @@ impl Popup { && y < self.area.bottom(); if !mouse_is_within_popup { - return EventResult::Ignored(None); + return EventResult::Ignored(Some(self.close_cb())); } match kind {