From f7c86742e7bfb0f9dee7fedf0a82d78ee15b837d Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Sun, 31 Aug 2025 23:32:21 -0400 Subject: [PATCH] vim-patch:8.1.1920: cannot always close a popup when filter consumes all events Problem: Cannot close a popup by the X when a filter consumes all events. Solution: Check for a click on the close button before invoking filters. (closes vim/vim#4858) https://github.com/vim/vim/commit/f63962378dc32c7253e4825b4b0f414a81c1dd3e Co-authored-by: Bram Moolenaar --- src/nvim/mouse.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/nvim/mouse.c b/src/nvim/mouse.c index 330095bbf6..6016515ba3 100644 --- a/src/nvim/mouse.c +++ b/src/nvim/mouse.c @@ -1262,7 +1262,8 @@ retnomove: return IN_UNKNOWN; } - // find the window where the row is in + // find the window where the row is in and adjust "row" and "col" to be + // relative to top-left of the window win_T *wp = mouse_find_win(&grid, &row, &col); if (wp == NULL) { return IN_UNKNOWN;