Skip to content

Commit de7eb0a

Browse files
committed
patch 7.4.1829
Problem: No message on channel log when buffer was freed. Solution: Log a message.
1 parent e0f76d0 commit de7eb0a

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
@@ -63,6 +63,8 @@ static int channel_need_redraw = FALSE;
6363
* is safe to invoke callbacks. */
6464
static int safe_to_invoke_callback = 0;
6565

66+
static char *part_names[] = {"sock", "out", "err", "in"};
67+
6668
#ifdef WIN32
6769
static int
6870
fd_read(sock_T fd, char *buf, size_t len)
@@ -1422,7 +1424,11 @@ channel_buffer_free(buf_T *buf)
14221424
chanpart_T *ch_part = &channel->ch_part[part];
14231425

14241426
if (ch_part->ch_buffer == buf)
1427+
{
1428+
ch_logs(channel, "%s buffer has been wiped out",
1429+
part_names[part]);
14251430
ch_part->ch_buffer = NULL;
1431+
}
14261432
}
14271433
}
14281434

src/version.c

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

754754
static int included_patches[] =
755755
{ /* Add new patch number below this line */
756+
/**/
757+
1829,
756758
/**/
757759
1828,
758760
/**/

0 commit comments

Comments
 (0)