Mercurial > vim
comparison src/channel.c @ 18191:0f8a34c996eb v8.1.2090
patch 8.1.2090: not clear why channel log file ends
Commit: https://github.com/vim/vim/commit/2e47cab715669bd0c89762217cbf77bd70cd82ac
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Sep 27 23:12:45 2019 +0200
patch 8.1.2090: not clear why channel log file ends
Problem: Not clear why channel log file ends.
Solution: Add a "closing" line.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 27 Sep 2019 23:15:03 +0200 |
parents | 4ac8161e92e0 |
children | c469e1930456 |
comparison
equal
deleted
inserted
replaced
18190:2595b3798406 | 18191:0f8a34c996eb |
---|---|
139 ch_logfile(char_u *fname, char_u *opt) | 139 ch_logfile(char_u *fname, char_u *opt) |
140 { | 140 { |
141 FILE *file = NULL; | 141 FILE *file = NULL; |
142 | 142 |
143 if (log_fd != NULL) | 143 if (log_fd != NULL) |
144 { | |
145 if (*fname != NUL) | |
146 ch_log(NULL, "closing, opening %s", fname); | |
147 else | |
148 ch_log(NULL, "closing"); | |
144 fclose(log_fd); | 149 fclose(log_fd); |
150 } | |
145 | 151 |
146 if (*fname != NUL) | 152 if (*fname != NUL) |
147 { | 153 { |
148 file = fopen((char *)fname, *opt == 'w' ? "w" : "a"); | 154 file = fopen((char *)fname, *opt == 'w' ? "w" : "a"); |
149 if (file == NULL) | 155 if (file == NULL) |