patch 7.4.1319
Problem: Tests fail on MS-Windows and on Unix with GUI.
Solution: Fix unregistering.
diff --git a/src/structs.h b/src/structs.h
index 7dd4b46..7f2f111 100644
--- a/src/structs.h
+++ b/src/structs.h
@@ -1301,8 +1301,8 @@
MODE_JS
} ch_mode_T;
-/* Ordering matters: IN is last, only SOCK/OUT/ERR are polled */
-
+/* Ordering matters, it is used in for loops: IN is last, only SOCK/OUT/ERR
+ * are polled. */
#define CHAN_SOCK 0
#define CH_SOCK ch_pfd[CHAN_SOCK].ch_fd
@@ -1342,7 +1342,7 @@
int ch_id; /* ID of the channel */
- chan_fd_T ch_pfd[4]; /* info for socket, in, out and err */
+ chan_fd_T ch_pfd[4]; /* info for socket, out, err and in */
readq_T ch_head; /* dummy node, header for circular queue */
@@ -1351,6 +1351,7 @@
* the other side has exited, only mention the
* first error until the connection works
* again. */
+
void (*ch_close_cb)(void); /* callback for when channel is closed */
int ch_block_id; /* ID that channel_read_json_block() is