Skip to content

Commit 2e47cab

Browse files
committed
patch 8.1.2090: not clear why channel log file ends
Problem: Not clear why channel log file ends. Solution: Add a "closing" line.
1 parent 7b666c7 commit 2e47cab

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

src/channel.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,13 @@ ch_logfile(char_u *fname, char_u *opt)
141141
FILE *file = NULL;
142142

143143
if (log_fd != NULL)
144+
{
145+
if (*fname != NUL)
146+
ch_log(NULL, "closing, opening %s", fname);
147+
else
148+
ch_log(NULL, "closing");
144149
fclose(log_fd);
150+
}
145151

146152
if (*fname != NUL)
147153
{

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -757,6 +757,8 @@ static char *(features[]) =
757757

758758
static int included_patches[] =
759759
{ /* Add new patch number below this line */
760+
/**/
761+
2090,
760762
/**/
761763
2089,
762764
/**/

0 commit comments

Comments
 (0)