0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.0.0930: terminal buffers are stored in the viminfo file

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
This commit is contained in:
Bram Moolenaar
2017-08-13 18:11:17 +02:00
parent 2438ae3d67
commit e62780543f
3 changed files with 22 additions and 3 deletions

View File

@@ -5658,6 +5658,9 @@ write_viminfo_bufferlist(FILE *fp)
|| !buf->b_p_bl
#ifdef FEAT_QUICKFIX
|| bt_quickfix(buf)
#endif
#ifdef FEAT_TERMINAL
|| bt_terminal(buf)
#endif
|| removable(buf->b_ffname))
continue;