comparison src/channel.c @ 10030:3b4b2ac811f0 v7.4.2287

commit https://github.com/vim/vim/commit/6fc8227ebfbdfbbb48b81b679db81f421dbce79b Author: Bram Moolenaar <Bram@vim.org> Date: Sun Aug 28 19:26:43 2016 +0200 patch 7.4.2287 Problem: The callback passed to ch_sendraw() is not used. Solution: Pass the read part, not the send part. (haya14busa, closes https://github.com/vim/vim/issues/1019)
author Christian Brabandt <cb@256bit.org>
date Sun, 28 Aug 2016 19:30:04 +0200
parents 176e34b0d678
children 4aead6a9b7a9
comparison
equal deleted inserted replaced
10029:efcc8ed81517 10030:3b4b2ac811f0
3454 if (eval) 3454 if (eval)
3455 { 3455 {
3456 EMSG2(_("E917: Cannot use a callback with %s()"), fun); 3456 EMSG2(_("E917: Cannot use a callback with %s()"), fun);
3457 return NULL; 3457 return NULL;
3458 } 3458 }
3459 channel_set_req_callback(channel, part_send, 3459 channel_set_req_callback(channel, *part_read,
3460 opt->jo_callback, opt->jo_partial, id); 3460 opt->jo_callback, opt->jo_partial, id);
3461 } 3461 }
3462 3462
3463 if (channel_send(channel, part_send, text, (int)STRLEN(text), fun) == OK 3463 if (channel_send(channel, part_send, text, (int)STRLEN(text), fun) == OK
3464 && opt->jo_callback == NULL) 3464 && opt->jo_callback == NULL)