summaryrefslogtreecommitdiff
path: root/src/proto
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/proto
parent8a5c29aee978345132ad7f318b8a84633c33905c (diff)
downloadvim-git-9d5ffceb3fea247a88d4d3936e97b7f488aab6ff.tar.gz
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/proto')
-rw-r--r--src/proto/ui.pro2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/proto/ui.pro b/src/proto/ui.pro
index 7b28a32a2..472da3601 100644
--- a/src/proto/ui.pro
+++ b/src/proto/ui.pro
@@ -64,7 +64,7 @@ void clip_x11_set_selection(Clipboard_T *cbd);
int clip_x11_owner_exists(Clipboard_T *cbd);
void yank_cut_buffer0(Display *dpy, Clipboard_T *cbd);
int jump_to_mouse(int flags, int *inclusive, int which_button);
-int mouse_comp_pos(win_T *win, int *rowp, int *colp, linenr_T *lnump);
+int mouse_comp_pos(win_T *win, int *rowp, int *colp, linenr_T *lnump, int *plines_cache);
win_T *mouse_find_win(int *rowp, int *colp, mouse_find_T popup);
int get_fpos_of_mouse(pos_T *mpos);
int vcol2col(win_T *wp, linenr_T lnum, int vcol);