From 4d6e99c94913676cc7a6581c13579e5f9fbe26c5 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Sat, 6 Apr 2019 01:09:46 -0400 Subject: vim-patch:8.0.0728: the terminal structure is never freed Problem: The terminal structure is never freed. Solution: Free the structure and unreference what it contains. https://github.com/vim/vim/commit/96ca27a0ee8ae738cab9fb386984c75c6821e31a --- src/nvim/buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/buffer.c') diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c index 4c9a14b25f..8d075dfeae 100644 --- a/src/nvim/buffer.c +++ b/src/nvim/buffer.c @@ -1550,7 +1550,7 @@ void enter_buffer(buf_T *buf) diff_buf_add(curbuf); } - curwin->w_s = &(buf->b_s); + curwin->w_s = &(curbuf->b_s); // Cursor on first line by default. curwin->w_cursor.lnum = 1; -- cgit