1
0
forked from aniani/vim

patch 7.4.1187

Problem:    MS-Windows channel code only supports one channel.  Doesn't build
            without netbeans support.
Solution:   Get the channel index from the socket in the message. Closes #600.
This commit is contained in:
Bram Moolenaar
2016-01-27 21:08:18 +01:00
parent 4a1314cb9c
commit 85be35f33e
6 changed files with 25 additions and 12 deletions

View File

@@ -1782,8 +1782,10 @@ process_message(void)
#ifdef FEAT_CHANNEL
if (msg.message == WM_NETBEANS)
{
/* TODO: channel_read(idx) */
netbeans_read();
int channel_idx = channel_socket2idx((sock_T)msg.wParam);
if (channel_idx >= 0)
channel_read(channel_idx);
return;
}
#endif