Mercurial > vim
changeset 15332:0eed23d9733a v8.1.0674
patch 8.1.0674: leaking memory when updating a single line
commit https://github.com/vim/vim/commit/6d5b4f566a2a50c1de7300336e9e4f5e761500a8
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jan 1 15:15:47 2019 +0100
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 01 Jan 2019 15:30:06 +0100 |
parents | fb2b29e6f5ba |
children | 37502e631202 |
files | src/screen.c src/version.c |
diffstat | 2 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/screen.c +++ b/src/screen.c @@ -961,14 +961,10 @@ update_single_line(win_T *wp, linenr_T l 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;