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.
96ca27a0ee
This commit is contained in:
Jan Edmund Lazo 2019-04-06 01:09:46 -04:00
parent 5262a1f4b5
commit 4d6e99c949

View File

@ -1550,7 +1550,7 @@ void enter_buffer(buf_T *buf)
diff_buf_add(curbuf); diff_buf_add(curbuf);
} }
curwin->w_s = &(buf->b_s); curwin->w_s = &(curbuf->b_s);
// Cursor on first line by default. // Cursor on first line by default.
curwin->w_cursor.lnum = 1; curwin->w_cursor.lnum = 1;