Mercurial > vim
comparison src/evalfunc.c @ 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 | bba80d61ea73 |
children | bfc5a2962f38 |
comparison
equal
deleted
inserted
replaced
17505:a76219d230b3 | 17506:74b6674b99fd |
---|---|
4736 /* Find the window at the mouse coordinates and compute the | 4736 /* Find the window at the mouse coordinates and compute the |
4737 * text position. */ | 4737 * text position. */ |
4738 win = mouse_find_win(&row, &col, FIND_POPUP); | 4738 win = mouse_find_win(&row, &col, FIND_POPUP); |
4739 if (win == NULL) | 4739 if (win == NULL) |
4740 return; | 4740 return; |
4741 (void)mouse_comp_pos(win, &row, &col, &lnum); | 4741 (void)mouse_comp_pos(win, &row, &col, &lnum, NULL); |
4742 # ifdef FEAT_TEXT_PROP | 4742 # ifdef FEAT_TEXT_PROP |
4743 if (WIN_IS_POPUP(win)) | 4743 if (WIN_IS_POPUP(win)) |
4744 winnr = 0; | 4744 winnr = 0; |
4745 else | 4745 else |
4746 # endif | 4746 # endif |