summaryrefslogtreecommitdiff
path: root/src/gui_w48.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-02-13 23:23:53 +0100
committerBram Moolenaar <Bram@vim.org>2016-02-13 23:23:53 +0100
commit7707344ddec9069b495b2a5ed41f2104466fc88b (patch)
tree9c6b21f811c7c38a89daf010c61453d7d6eaa8da /src/gui_w48.c
parente516c39ee97cb85fa230fbb1b1f54ad1346920d9 (diff)
downloadvim-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.c6
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;