diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-04-06 01:09:46 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-04-06 01:10:32 -0400 |
commit | 4d6e99c94913676cc7a6581c13579e5f9fbe26c5 (patch) | |
tree | 35ee1ec00bd2df191bc140ddd42acbad883ef129 /src | |
parent | 5262a1f4b52926e3082ca123a3fb6c3053746600 (diff) | |
download | rneovim-4d6e99c94913676cc7a6581c13579e5f9fbe26c5.tar.gz rneovim-4d6e99c94913676cc7a6581c13579e5f9fbe26c5.tar.bz2 rneovim-4d6e99c94913676cc7a6581c13579e5f9fbe26c5.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |