refactor: remove cpo-& behavior (#17745)

cpo-& has been removed, but its behavior was accidentally made the
default behavior. That should be removed instead.
This commit is contained in:
zeertzjq
2022-03-23 19:52:50 +08:00
committed by GitHub
parent 0621cd3112
commit f5a3edb0c0
5 changed files with 10 additions and 11 deletions

View File

@@ -585,16 +585,14 @@ void ml_close(buf_T *buf, int del_file)
buf->b_flags &= ~BF_RECOVERED;
}
/*
* 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(int del_file)
/// Close all existing memlines and memfiles.
/// Only used when exiting.
///
/// @param del_file if true, delete the memfiles.
void ml_close_all(bool del_file)
{
FOR_ALL_BUFFERS(buf) {
ml_close(buf, del_file && ((buf->b_flags & BF_PRESERVED) == 0));
ml_close(buf, del_file);
}
spell_delete_wordlist(); // delete the internal wordlist
vim_deltempdir(); // delete created temp directory