comparison src/gui_w48.c @ 7780:e09af43f98f7 v7.4.1187

commit https://github.com/vim/vim/commit/85be35f33ea848b50e84d57321a45ebfedfad669 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jan 27 21:08:18 2016 +0100 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 https://github.com/vim/vim/issues/600.
author Christian Brabandt <cb@256bit.org>
date Wed, 27 Jan 2016 21:15:05 +0100
parents 42c1a4e63d12
children a1e71a01dbd6
comparison
equal deleted inserted replaced
7779:cb1957f23ea4 7780:e09af43f98f7
1780 #endif 1780 #endif
1781 1781
1782 #ifdef FEAT_CHANNEL 1782 #ifdef FEAT_CHANNEL
1783 if (msg.message == WM_NETBEANS) 1783 if (msg.message == WM_NETBEANS)
1784 { 1784 {
1785 /* TODO: channel_read(idx) */ 1785 int channel_idx = channel_socket2idx((sock_T)msg.wParam);
1786 netbeans_read(); 1786
1787 if (channel_idx >= 0)
1788 channel_read(channel_idx);
1787 return; 1789 return;
1788 } 1790 }
1789 #endif 1791 #endif
1790 1792
1791 #ifdef FEAT_SNIFF 1793 #ifdef FEAT_SNIFF