diff 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
line wrap: on
line diff
--- a/src/channel.c
+++ b/src/channel.c
@@ -3456,7 +3456,7 @@ send_common(
 	    EMSG2(_("E917: Cannot use a callback with %s()"), fun);
 	    return NULL;
 	}
-	channel_set_req_callback(channel, part_send,
+	channel_set_req_callback(channel, *part_read,
 				       opt->jo_callback, opt->jo_partial, id);
     }