summaryrefslogtreecommitdiffstats
path: root/src/beval.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-07-26 21:01:29 +0200
committerBram Moolenaar <Bram@vim.org>2019-07-26 21:01:29 +0200
commit9d5ffceb3fea247a88d4d3936e97b7f488aab6ff (patch)
tree24a015797538750c4e362f9c976db8749c3c0c50 /src/beval.c
parent8a5c29aee978345132ad7f318b8a84633c33905c (diff)
patch 8.1.1751: when redrawing popups plines_win() may be called oftenv8.1.1751
Problem: When redrawing popups plines_win() may be called often. Solution: Pass a cache to mouse_comp_pos().
Diffstat (limited to 'src/beval.c')
-rw-r--r--src/beval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/beval.c b/src/beval.c
index 3dd9b6770c..69e667d639 100644
--- a/src/beval.c
+++ b/src/beval.c
@@ -43,7 +43,7 @@ find_word_under_cursor(
{
// Found a window and the cursor is in the text. Now find the line
// number.
- if (!mouse_comp_pos(wp, &row, &col, &lnum))
+ if (!mouse_comp_pos(wp, &row, &col, &lnum, NULL))
{
// Not past end of the file.
lbuf = ml_get_buf(wp->w_buffer, lnum, FALSE);