diff options
author | Bram Moolenaar <Bram@vim.org> | 2005-02-12 14:31:42 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2005-02-12 14:31:42 +0000 |
commit | 81bf70834198428f10681eea8630732fa7aeafdb (patch) | |
tree | 362896b750fb6344a7c743389a86faae547daa8b /src/memline.c | |
parent | 4399ef4764584a24080670b4869cb8b5d31a4f78 (diff) | |
download | vim-81bf70834198428f10681eea8630732fa7aeafdb.zip |
updated for version 7.0050
Diffstat (limited to 'src/memline.c')
-rw-r--r-- | src/memline.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/memline.c b/src/memline.c index e18b89545..884f3097c 100644 --- a/src/memline.c +++ b/src/memline.c @@ -609,6 +609,7 @@ ml_close(buf, del_file) * Close all existing memlines and memfiles. * Only used when exiting. * When 'del_file' is TRUE, delete the memfiles. + * But don't delete files that were ":preserve"d when we are POSIX compatible. */ void ml_close_all(del_file) @@ -617,7 +618,8 @@ ml_close_all(del_file) buf_T *buf; for (buf = firstbuf; buf != NULL; buf = buf->b_next) - ml_close(buf, del_file); + ml_close(buf, del_file && ((buf->b_flags & BF_PRESERVED) == 0 + || vim_strchr(p_cpo, CPO_PRESERVE) == NULL)); #ifdef TEMPDIRNAMES vim_deltempdir(); /* delete created temp directory */ #endif |