From d05cc257946922e11cde0676935233ec5f90c1ad Mon Sep 17 00:00:00 2001 From: Gokul Soumya Date: Sun, 31 Mar 2024 01:44:44 +0530 Subject: [PATCH] Close popups when receiving mouse events outside the frame --- helix-term/src/ui/popup.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {