Mercurial > vim
comparison src/proto/ui.pro @ 17506:74b6674b99fd v8.1.1751
patch 8.1.1751: when redrawing popups plines_win() may be called often
commit https://github.com/vim/vim/commit/9d5ffceb3fea247a88d4d3936e97b7f488aab6ff
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jul 26 21:01:29 2019 +0200
patch 8.1.1751: when redrawing popups plines_win() may be called often
Problem: When redrawing popups plines_win() may be called often.
Solution: Pass a cache to mouse_comp_pos().
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 26 Jul 2019 21:15:06 +0200 |
parents | 3147c7c2e86b |
children | 0f7ae8010787 |
comparison
equal
deleted
inserted
replaced
17505:a76219d230b3 | 17506:74b6674b99fd |
---|---|
62 int clip_x11_own_selection(Widget myShell, Clipboard_T *cbd); | 62 int clip_x11_own_selection(Widget myShell, Clipboard_T *cbd); |
63 void clip_x11_set_selection(Clipboard_T *cbd); | 63 void clip_x11_set_selection(Clipboard_T *cbd); |
64 int clip_x11_owner_exists(Clipboard_T *cbd); | 64 int clip_x11_owner_exists(Clipboard_T *cbd); |
65 void yank_cut_buffer0(Display *dpy, Clipboard_T *cbd); | 65 void yank_cut_buffer0(Display *dpy, Clipboard_T *cbd); |
66 int jump_to_mouse(int flags, int *inclusive, int which_button); | 66 int jump_to_mouse(int flags, int *inclusive, int which_button); |
67 int mouse_comp_pos(win_T *win, int *rowp, int *colp, linenr_T *lnump); | 67 int mouse_comp_pos(win_T *win, int *rowp, int *colp, linenr_T *lnump, int *plines_cache); |
68 win_T *mouse_find_win(int *rowp, int *colp, mouse_find_T popup); | 68 win_T *mouse_find_win(int *rowp, int *colp, mouse_find_T popup); |
69 int get_fpos_of_mouse(pos_T *mpos); | 69 int get_fpos_of_mouse(pos_T *mpos); |
70 int vcol2col(win_T *wp, linenr_T lnum, int vcol); | 70 int vcol2col(win_T *wp, linenr_T lnum, int vcol); |
71 void ui_focus_change(int in_focus); | 71 void ui_focus_change(int in_focus); |
72 void im_save_status(long *psave); | 72 void im_save_status(long *psave); |