summaryrefslogtreecommitdiff
path: root/src/buffer.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-08-13 18:11:17 +0200
committerBram Moolenaar <Bram@vim.org>2017-08-13 18:11:17 +0200
commite62780543f403186b27b210dd087dd8ba74159fc (patch)
tree69c492ec6c21c0a312888a22726f06e7a9d99fd1 /src/buffer.c
parent2438ae3d678288c4726d2e393d1c66fd5cc52623 (diff)
downloadvim-git-e62780543f403186b27b210dd087dd8ba74159fc.tar.gz
patch 8.0.0930: terminal buffers are stored in the viminfo filev8.0.0930
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
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 369eec709..a33b349d9 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -5659,6 +5659,9 @@ write_viminfo_bufferlist(FILE *fp)
#ifdef FEAT_QUICKFIX
|| bt_quickfix(buf)
#endif
+#ifdef FEAT_TERMINAL
+ || bt_terminal(buf)
+#endif
|| removable(buf->b_ffname))
continue;