0
0
mirror of https://github.com/vim/vim.git synced 2025-10-01 04:54:07 -04:00

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.
This commit is contained in:
Bram Moolenaar
2016-03-03 19:35:02 +01:00
parent da94fdf258
commit d6547fc647
4 changed files with 101 additions and 17 deletions

View File

@@ -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.