diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-03-03 19:35:02 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-03-03 19:35:02 +0100 |
commit | d6547fc6471d9084f942bdc4ae3aedb39361751d (patch) | |
tree | a78b5d8d63a35c19fa7fda1524b282fa8e6217ae /src/testdir/test_channel.py | |
parent | da94fdf2588b3910d38e477a755748ce2c6d2e66 (diff) | |
download | vim-git-d6547fc6471d9084f942bdc4ae3aedb39361751d.tar.gz |
patch 7.4.1483v7.4.1483
Problem: A one-time callback is not used for a raw channel.
Solution: Use a one-time callback when it exists.
Diffstat (limited to 'src/testdir/test_channel.py')
-rw-r--r-- | src/testdir/test_channel.py | 3 |
1 files changed, 3 insertions, 0 deletions
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. |