Mercurial > vim
diff src/beval.c @ 17041:5ed4965ebc7b v8.1.1520
patch 8.1.1520: popup windows are ignored when dealing with mouse position
commit https://github.com/vim/vim/commit/451d4b5b7c7262631cd1f5057c75d6f5f5772fb1
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jun 12 20:22:27 2019 +0200
patch 8.1.1520: popup windows are ignored when dealing with mouse position
Problem: Popup windows are ignored when dealing with mouse position
Solution: Find the mouse position inside a popup window. Allow for modeless
selection.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 12 Jun 2019 20:30:07 +0200 |
parents | a1229400434a |
children | 8a095d343c59 |
line wrap: on
line diff
--- a/src/beval.c +++ b/src/beval.c @@ -49,7 +49,7 @@ get_beval_info( col = X_2_COL(beval->x); } #endif - wp = mouse_find_win(&row, &col); + wp = mouse_find_win(&row, &col, FAIL_POPUP); if (wp != NULL && row >= 0 && row < wp->w_height && col < wp->w_width) { /* Found a window and the cursor is in the text. Now find the line @@ -141,6 +141,7 @@ get_beval_info( /* * Show a balloon with "mesg" or "list". + * Hide the balloon when both are NULL. */ void post_balloon(BalloonEval *beval UNUSED, char_u *mesg, list_T *list UNUSED) @@ -153,7 +154,7 @@ post_balloon(BalloonEval *beval UNUSED, # endif # ifdef FEAT_BEVAL_GUI if (gui.in_use) - /* GUI can't handle a list */ + // GUI can't handle a list gui_mch_post_balloon(beval, mesg); # endif }