0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 7.4.1827

Problem:    No error when invoking a callback when it's not safe.
Solution:   Add an error message.  Avoid the error when freeing a channel.
This commit is contained in:
Bram Moolenaar
2016-05-09 17:58:04 +02:00
parent cf7ff70ca7
commit fb6ffc732e
3 changed files with 36 additions and 2 deletions

View File

@@ -1419,6 +1419,8 @@ struct channel_S {
int ch_to_be_closed; /* When TRUE reading or writing failed and
* the channel must be closed when it's safe
* to invoke callbacks. */
int ch_to_be_freed; /* When TRUE channel must be freed when it's
* safe to invoke callbacks. */
int ch_error; /* When TRUE an error was reported. Avoids
* giving pages full of error messages when
* the other side has exited, only mention the