summaryrefslogtreecommitdiffstats
path: root/src/beval.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-06-12 20:22:27 +0200
committerBram Moolenaar <Bram@vim.org>2019-06-12 20:22:27 +0200
commit451d4b5b7c7262631cd1f5057c75d6f5f5772fb1 (patch)
treedeb24fe64258461378994e9255c68f6179f11e31 /src/beval.c
parent06e2c81f6d213d197aa60019b33a263cd5176d68 (diff)
patch 8.1.1520: popup windows are ignored when dealing with mouse positionv8.1.1520
Problem: Popup windows are ignored when dealing with mouse position Solution: Find the mouse position inside a popup window. Allow for modeless selection.
Diffstat (limited to 'src/beval.c')
-rw-r--r--src/beval.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/beval.c b/src/beval.c
index d51a3f5d84..e89b1fe50b 100644
--- 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, char_u *mesg, list_T *list 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
}