changeset 21341:e562f5d1e2a4 v8.2.1221

patch 8.2.1221: memory leak when updating popup window Commit: https://github.com/vim/vim/commit/02f9e6a60f9851046154ccf2ac170f25a0b3cc7d Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jul 15 18:27:08 2020 +0200 patch 8.2.1221: memory leak when updating popup window Problem: Memory leak when updating popup window. Solution: Clear search highlighting.
author Bram Moolenaar <Bram@vim.org>
date Wed, 15 Jul 2020 18:30:03 +0200
parents 6a32859392be
children 7f74e77a6030
files src/popupwin.c src/version.c
diffstat 2 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/popupwin.c
+++ b/src/popupwin.c
@@ -3855,6 +3855,11 @@ update_popups(void (*win_update)(win_T *
 	// 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
 }
 
 /*
--- a/src/version.c
+++ b/src/version.c
@@ -755,6 +755,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1221,
+/**/
     1220,
 /**/
     1219,