patch 8.1.0674: leaking memory when updating a single line
Problem: Leaking memory when updating a single line.
Solution: Do not call start_search_hl() twice.
diff --git a/src/screen.c b/src/screen.c
index 322efce..55874e9 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -961,14 +961,10 @@
screen_start(); /* not sure of screen cursor */
# ifdef FEAT_SEARCH_EXTRA
init_search_hl(wp);
- start_search_hl();
prepare_search_hl(wp, lnum);
# endif
win_line(wp, lnum, row, row + wp->w_lines[j].wl_size,
FALSE, FALSE);
-# if defined(FEAT_SEARCH_EXTRA)
- end_search_hl();
-# endif
break;
}
row += wp->w_lines[j].wl_size;
diff --git a/src/version.c b/src/version.c
index 8240912..17f7733 100644
--- a/src/version.c
+++ b/src/version.c
@@ -800,6 +800,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 674,
+/**/
673,
/**/
672,