mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-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.
6d5b4f566a
This commit is contained in:
parent
fd674c875b
commit
40f7ce96c3
@ -550,13 +550,11 @@ void update_single_line(win_T *wp, linenr_T lnum)
|
||||
for (j = 0; j < wp->w_lines_valid; ++j) {
|
||||
if (lnum == wp->w_lines[j].wl_lnum) {
|
||||
init_search_hl(wp);
|
||||
start_search_hl();
|
||||
prepare_search_hl(wp, lnum);
|
||||
update_window_hl(wp, false);
|
||||
// allocate window grid if not already
|
||||
win_grid_alloc(wp);
|
||||
win_line(wp, lnum, row, row + wp->w_lines[j].wl_size, false, false);
|
||||
end_search_hl();
|
||||
break;
|
||||
}
|
||||
row += wp->w_lines[j].wl_size;
|
||||
|
Loading…
Reference in New Issue
Block a user