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
e62780543f
This commit is contained in:
Jaskaran Singh 2019-08-30 16:46:54 +00:00 committed by Daniel Hahler
parent e03a4f965e
commit ab560739ac

View File

@ -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 FUNC_ATTR_PURE FUNC_ATTR_WARN_UNUSED_RESULT FUNC_ATTR_ALWAYS_INLINE
{ {
return (buf->b_ffname == NULL || !buf->b_p_bl || bt_quickfix(buf) \ 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 /// Get list of buffers to write to the shada file