summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-07-15 18:27:08 +0200
committerBram Moolenaar <Bram@vim.org>2020-07-15 18:27:08 +0200
commit02f9e6a60f9851046154ccf2ac170f25a0b3cc7d (patch)
tree593583704cf9c3f0a19a4aeecd61efea1f469a84
parent452143c6bf0dcf76ef415281b0e4fbc3edff4b6b (diff)
downloadvim-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.
-rw-r--r--src/popupwin.c5
-rw-r--r--src/version.c2
2 files changed, 7 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
}
/*
diff --git a/src/version.c b/src/version.c
index 424234b9a..f0cfe69a3 100644
--- 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,