From d6547fc6471d9084f942bdc4ae3aedb39361751d Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 3 Mar 2016 19:35:02 +0100 Subject: patch 7.4.1483 Problem: A one-time callback is not used for a raw channel. Solution: Use a one-time callback when it exists. --- src/testdir/test_channel.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/testdir/test_channel.py') diff --git a/src/testdir/test_channel.py b/src/testdir/test_channel.py index 9a3c9213a..02e6ba3ec 100644 --- a/src/testdir/test_channel.py +++ b/src/testdir/test_channel.py @@ -62,6 +62,9 @@ class ThreadedTCPRequestHandler(socketserver.BaseRequestHandler): if decoded[1] == 'hello!': # simply send back a string response = "got it" + elif decoded[1].startswith("echo "): + # send back the argument + response = decoded[1][5:] elif decoded[1] == 'make change': # Send two ex commands at the same time, before # replying to the request. -- cgit v1.2.1