1
0
forked from aniani/vim

patch 8.1.2090: not clear why channel log file ends

Problem:    Not clear why channel log file ends.
Solution:   Add a "closing" line.
This commit is contained in:
Bram Moolenaar
2019-09-27 23:12:45 +02:00
parent 7b666c7883
commit 2e47cab715
2 changed files with 8 additions and 0 deletions

View File

@@ -141,7 +141,13 @@ ch_logfile(char_u *fname, char_u *opt)
FILE *file = NULL;
if (log_fd != NULL)
{
if (*fname != NUL)
ch_log(NULL, "closing, opening %s", fname);
else
ch_log(NULL, "closing");
fclose(log_fd);
}
if (*fname != NUL)
{