aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJaskaran Singh <jaskaransingh7654321@gmail.com>2019-08-30 16:46:54 +0000
committerDaniel Hahler <git@thequod.de>2019-08-30 18:46:54 +0200
commitab560739aca0adc32cebeff7f393e1c6160adc2b (patch)
tree504a459cae2c787c8bae9495c798e2eae3923c51 /src
parente03a4f965e8cb9821e425e1df873b48460c52dbf (diff)
downloadrneovim-ab560739aca0adc32cebeff7f393e1c6160adc2b.tar.gz
rneovim-ab560739aca0adc32cebeff7f393e1c6160adc2b.tar.bz2
rneovim-ab560739aca0adc32cebeff7f393e1c6160adc2b.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/nvim/shada.c2
1 files changed, 1 insertions, 1 deletions
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