Patch 8.2.0681
Problem: Pattern for 'hlsearch' highlighting may leak. (Dominique Pelle)
Solution: Call end_search_hl() to make sure the previous pattern is freed.
(closes #6028)
Files: src/screen.c
*** ../vim-8.2.0680/src/screen.c 2020-04-30 20:59:54.080610231 +0200
--- src/screen.c 2020-05-02 18:31:50.872209800 +0200
***************
*** 1718,1723 ****
--- 1718,1724 ----
{
if (p_hls && !no_hlsearch)
{
+ end_search_hl(); // just in case it wasn't called before
last_pat_prog(&screen_search_hl.rm);
screen_search_hl.attr = HL_ATTR(HLF_L);
# ifdef FEAT_RELTIME
*** ../vim-8.2.0680/src/version.c 2020-05-02 18:14:33.920146062 +0200
--- src/version.c 2020-05-02 18:32:49.855986907 +0200
***************
*** 748,749 ****
--- 748,751 ----
{ /* Add new patch number below this line */
+ /**/
+ 681,
/**/
--
Portable Computer: A device invented to force businessmen
to work at home, on vacation, and on business trips.
/// Bram Moolenaar -- Br...@Moolenaar.net --
http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features --
http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language --
http://www.Zimbu.org ///
\\\ help me help AIDS victims --
http://ICCF-Holland.org ///