0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

updated for version 7.4.108

Problem:    "zG" and "zW" leave temp files around on MS-Windows.
Solution:   Delete the temp files when exiting. (Ken Takata)
This commit is contained in:
Bram Moolenaar
2013-11-28 17:41:46 +01:00
parent 9fee7d4729
commit 34b466edfe
4 changed files with 33 additions and 18 deletions

View File

@@ -841,8 +841,11 @@ ml_close_all(del_file)
for (buf = firstbuf; buf != NULL; buf = buf->b_next)
ml_close(buf, del_file && ((buf->b_flags & BF_PRESERVED) == 0
|| vim_strchr(p_cpo, CPO_PRESERVE) == NULL));
#ifdef FEAT_SPELL
spell_delete_wordlist(); /* delete the internal wordlist */
#endif
#ifdef TEMPDIRNAMES
vim_deltempdir(); /* delete created temp directory */
vim_deltempdir(); /* delete created temp directory */
#endif
}