Mercurial > vim
comparison src/eval.c @ 8491:daebcbd87bd3 v7.4.1536
commit https://github.com/vim/vim/commit/de27989157f35172b25f9e01e0c147ed8f6ae3ce
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Mar 11 22:19:44 2016 +0100
patch 7.4.1536
Problem: Cannot re-use a channel for another job.
Solution: Add the "channel" option to job_start().
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 11 Mar 2016 22:30:04 +0100 |
parents | 76b9c2305531 |
children | caed4b2d305f |
comparison
equal
deleted
inserted
replaced
8490:eceb3c28e179 | 8491:daebcbd87bd3 |
---|---|
10162 { | 10162 { |
10163 EMSG2(_(e_invarg2), get_tv_string(item)); | 10163 EMSG2(_(e_invarg2), get_tv_string(item)); |
10164 return FAIL; | 10164 return FAIL; |
10165 } | 10165 } |
10166 } | 10166 } |
10167 else if (STRCMP(hi->hi_key, "channel") == 0) | |
10168 { | |
10169 if (!(supported & JO_OUT_IO)) | |
10170 break; | |
10171 opt->jo_set |= JO_CHANNEL; | |
10172 if (item->v_type != VAR_CHANNEL) | |
10173 { | |
10174 EMSG2(_(e_invarg2), "channel"); | |
10175 return FAIL; | |
10176 } | |
10177 opt->jo_channel = item->vval.v_channel; | |
10178 } | |
10167 else if (STRCMP(hi->hi_key, "callback") == 0) | 10179 else if (STRCMP(hi->hi_key, "callback") == 0) |
10168 { | 10180 { |
10169 if (!(supported & JO_CALLBACK)) | 10181 if (!(supported & JO_CALLBACK)) |
10170 break; | 10182 break; |
10171 opt->jo_set |= JO_CALLBACK; | 10183 opt->jo_set |= JO_CALLBACK; |