diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-02-13 23:23:53 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-02-13 23:23:53 +0100 |
commit | 7707344ddec9069b495b2a5ed41f2104466fc88b (patch) | |
tree | 9c6b21f811c7c38a89daf010c61453d7d6eaa8da /src/gui_w48.c | |
parent | e516c39ee97cb85fa230fbb1b1f54ad1346920d9 (diff) | |
download | vim-git-7707344ddec9069b495b2a5ed41f2104466fc88b.tar.gz |
patch 7.4.1315v7.4.1315
Problem: Using a channel handle does not allow for freeing it when unused.
Solution: Add the Channel variable type.
Diffstat (limited to 'src/gui_w48.c')
-rw-r--r-- | src/gui_w48.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui_w48.c b/src/gui_w48.c index fd65581a0..67274ee18 100644 --- a/src/gui_w48.c +++ b/src/gui_w48.c @@ -1780,14 +1780,14 @@ process_message(void) #ifdef FEAT_CHANNEL if (msg.message == WM_NETBEANS) { - int channel_idx = channel_fd2idx((sock_T)msg.wParam); + channel_T *channel = channel_fd2channel((sock_T)msg.wParam); - if (channel_idx >= 0) + if (channel != NULL) { /* Disable error messages, they can mess up the display and throw * an exception. */ ++emsg_off; - channel_read(channel_idx, FALSE, "process_message"); + channel_read(channel, FALSE, "process_message"); --emsg_off; } return; |