mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
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:
parent
e03a4f965e
commit
ab560739ac
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user