0
0
mirror of https://github.com/vim/vim.git synced 2025-10-12 06:44:06 -04:00

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().
This commit is contained in:
Bram Moolenaar
2019-07-26 21:01:29 +02:00
parent 8a5c29aee9
commit 9d5ffceb3f
6 changed files with 52 additions and 23 deletions

View File

@@ -4738,7 +4738,7 @@ f_getchar(typval_T *argvars, typval_T *rettv)
win = mouse_find_win(&row, &col, FIND_POPUP);
if (win == NULL)
return;
(void)mouse_comp_pos(win, &row, &col, &lnum);
(void)mouse_comp_pos(win, &row, &col, &lnum, NULL);
# ifdef FEAT_TEXT_PROP
if (WIN_IS_POPUP(win))
winnr = 0;