mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 7.4.1829
Problem: No message on channel log when buffer was freed. Solution: Log a message.
This commit is contained in:
@@ -63,6 +63,8 @@ static int channel_need_redraw = FALSE;
|
|||||||
* is safe to invoke callbacks. */
|
* is safe to invoke callbacks. */
|
||||||
static int safe_to_invoke_callback = 0;
|
static int safe_to_invoke_callback = 0;
|
||||||
|
|
||||||
|
static char *part_names[] = {"sock", "out", "err", "in"};
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
static int
|
static int
|
||||||
fd_read(sock_T fd, char *buf, size_t len)
|
fd_read(sock_T fd, char *buf, size_t len)
|
||||||
@@ -1422,7 +1424,11 @@ channel_buffer_free(buf_T *buf)
|
|||||||
chanpart_T *ch_part = &channel->ch_part[part];
|
chanpart_T *ch_part = &channel->ch_part[part];
|
||||||
|
|
||||||
if (ch_part->ch_buffer == buf)
|
if (ch_part->ch_buffer == buf)
|
||||||
|
{
|
||||||
|
ch_logs(channel, "%s buffer has been wiped out",
|
||||||
|
part_names[part]);
|
||||||
ch_part->ch_buffer = NULL;
|
ch_part->ch_buffer = NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -753,6 +753,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1829,
|
||||||
/**/
|
/**/
|
||||||
1828,
|
1828,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user