From ab560739aca0adc32cebeff7f393e1c6160adc2b Mon Sep 17 00:00:00 2001 From: Jaskaran Singh Date: Fri, 30 Aug 2019 16:46:54 +0000 Subject: vim-patch:8.0.0930: terminal buffers are stored in the viminfo file (#10889) Problem: Terminal buffers are stored in the viminfo file while they can't be useful. Solution: Skip terminal buffers for file marks and buffer list https://github.com/vim/vim/commit/e62780543f403186b27b210dd087dd8ba74159fc --- src/nvim/shada.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/nvim/shada.c b/src/nvim/shada.c index 3ebe75b980..69e6d61464 100644 --- a/src/nvim/shada.c +++ b/src/nvim/shada.c @@ -2366,7 +2366,7 @@ static inline bool ignore_buf(const buf_T *const buf, FUNC_ATTR_PURE FUNC_ATTR_WARN_UNUSED_RESULT FUNC_ATTR_ALWAYS_INLINE { return (buf->b_ffname == NULL || !buf->b_p_bl || bt_quickfix(buf) \ - || in_bufset(removable_bufs, buf)); + || bt_terminal(buf) || in_bufset(removable_bufs, buf)); } /// Get list of buffers to write to the shada file -- cgit