diff options
author | Jaskaran Singh <jaskaransingh7654321@gmail.com> | 2019-08-30 16:46:54 +0000 |
---|---|---|
committer | Daniel Hahler <git@thequod.de> | 2019-08-30 18:46:54 +0200 |
commit | ab560739aca0adc32cebeff7f393e1c6160adc2b (patch) | |
tree | 504a459cae2c787c8bae9495c798e2eae3923c51 /src | |
parent | e03a4f965e8cb9821e425e1df873b48460c52dbf (diff) | |
download | rneovim-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.c | 2 |
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 |