diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-07-15 18:27:08 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-07-15 18:27:08 +0200 |
commit | 02f9e6a60f9851046154ccf2ac170f25a0b3cc7d (patch) | |
tree | 593583704cf9c3f0a19a4aeecd61efea1f469a84 /src/popupwin.c | |
parent | 452143c6bf0dcf76ef415281b0e4fbc3edff4b6b (diff) | |
download | vim-git-02f9e6a60f9851046154ccf2ac170f25a0b3cc7d.tar.gz |
patch 8.2.1221: memory leak when updating popup windowv8.2.1221
Problem: Memory leak when updating popup window.
Solution: Clear search highlighting.
Diffstat (limited to 'src/popupwin.c')
-rw-r--r-- | src/popupwin.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/popupwin.c b/src/popupwin.c index 59a0bdf78..296441b11 100644 --- a/src/popupwin.c +++ b/src/popupwin.c @@ -3855,6 +3855,11 @@ update_popups(void (*win_update)(win_T *wp)) // Back to the normal zindex. screen_zindex = 0; } + +#if defined(FEAT_SEARCH_EXTRA) + // In case win_update() called start_search_hl(). + end_search_hl(); +#endif } /* |