Mercurial > vim
comparison src/channel.c @ 8798:176647a751d7 v7.4.1687
commit https://github.com/vim/vim/commit/bdf0bda968a53a55149a4c83a10a60c28e431305
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Mar 30 21:06:57 2016 +0200
patch 7.4.1687
Problem: The channel close_cb option does not work.
Solution: Use jo_close_partial instead of jo_err_partial. (Damien)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 30 Mar 2016 22:15:10 +0200 |
parents | 23b7f05a7f48 |
children | 03250bc0c63a |
comparison
equal
deleted
inserted
replaced
8797:d007d789682a | 8798:176647a751d7 |
---|---|
1101 partial_unref(*pp); | 1101 partial_unref(*pp); |
1102 if (opt->jo_close_cb != NULL && *opt->jo_close_cb != NUL) | 1102 if (opt->jo_close_cb != NULL && *opt->jo_close_cb != NUL) |
1103 *cbp = vim_strsave(opt->jo_close_cb); | 1103 *cbp = vim_strsave(opt->jo_close_cb); |
1104 else | 1104 else |
1105 *cbp = NULL; | 1105 *cbp = NULL; |
1106 *pp = opt->jo_err_partial; | 1106 *pp = opt->jo_close_partial; |
1107 if (*pp != NULL) | 1107 if (*pp != NULL) |
1108 ++(*pp)->pt_refcount; | 1108 ++(*pp)->pt_refcount; |
1109 } | 1109 } |
1110 | 1110 |
1111 if ((opt->jo_set & JO_OUT_IO) && opt->jo_io[PART_OUT] == JIO_BUFFER) | 1111 if ((opt->jo_set & JO_OUT_IO) && opt->jo_io[PART_OUT] == JIO_BUFFER) |