Mercurial > vim
diff src/testdir/test_channel_pipe.py @ 13010:c522585ce88d v8.0.1381
patch 8.0.1381: ch_readraw() waits for NL if channel mode is NL
commit https://github.com/vim/vim/commit/620ca2da372dc9c892022faff83d363c67cc5c45
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Dec 9 19:13:13 2017 +0100
patch 8.0.1381: ch_readraw() waits for NL if channel mode is NL
Problem: ch_readraw() waits for NL if channel mode is NL.
Solution: Pass a "raw" flag to channel_read_block(). (Yasuhiro Matsumoto)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 09 Dec 2017 19:15:05 +0100 |
parents | c31782d57569 |
children | bfbdef46aa7d |
line wrap: on
line diff
--- a/src/testdir/test_channel_pipe.py +++ b/src/testdir/test_channel_pipe.py @@ -14,6 +14,10 @@ if __name__ == "__main__": if sys.argv[1].startswith("err"): print(sys.argv[1], file=sys.stderr) sys.stderr.flush() + elif sys.argv[1].startswith("incomplete"): + print(sys.argv[1], end='') + sys.stdout.flush() + sys.exit(0) else: print(sys.argv[1]) sys.stdout.flush()