summaryrefslogtreecommitdiff
path: root/src/eval.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-02-14 19:13:43 +0100
committerBram Moolenaar <Bram@vim.org>2016-02-14 19:13:43 +0100
commit7b3ca76a451b10d238ef946f3231762e0bd988e9 (patch)
treed05c9be4dafb1e5ae77eb76325df7cc40fda2e52 /src/eval.c
parent0727d362b4dad83d9fdf1caba074213e77e0aa49 (diff)
downloadvim-git-7b3ca76a451b10d238ef946f3231762e0bd988e9.tar.gz
patch 7.4.1318v7.4.1318
Problem: Channel with pipes doesn't work in GUI. Solution: Register input handlers for pipes.
Diffstat (limited to 'src/eval.c')
-rw-r--r--src/eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eval.c b/src/eval.c
index 75f5e54b5..a36f3dd51 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -9970,12 +9970,12 @@ f_ch_open(typval_T *argvars, typval_T *rettv)
channel = channel_open((char *)address, port, waittime, NULL);
if (channel != NULL)
{
+ rettv->vval.v_channel = channel;
channel_set_json_mode(channel, ch_mode);
channel_set_timeout(channel, timeout);
if (callback != NULL && *callback != NUL)
channel_set_callback(channel, callback);
}
- rettv->vval.v_channel = channel;
}
/*