commit f7c86742e7bfb0f9dee7fedf0a82d78ee15b837d
parent 89e2f346a8e12133e315bd4c927b0df5b99ed979
Author: Jan Edmund Lazo <jan.lazo@mail.utoronto.ca>
Date: Sun, 31 Aug 2025 23:32:21 -0400
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 <Bram@vim.org>
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git 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;