diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-04-05 22:44:39 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-04-05 22:44:39 +0200 |
commit | d5359b24ceefefed4b3a37efd9bf54176935f3a5 (patch) | |
tree | 254e2c8d143161dc57e86003127da51f99f644b9 /src/testdir/test_channel.vim | |
parent | 9a993e3c09371bb80d71be62fca53cf954a98f72 (diff) | |
download | vim-git-d5359b24ceefefed4b3a37efd9bf54176935f3a5.tar.gz |
patch 8.0.1666: % argument in ch_log() causes troublev8.0.1666
Problem: % argument in ch_log() causes trouble.
Solution: Use string as third argument in internal ch_log(). (Dominique
Pelle, closes #2784)
Diffstat (limited to 'src/testdir/test_channel.vim')
-rw-r--r-- | src/testdir/test_channel.vim | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/testdir/test_channel.vim b/src/testdir/test_channel.vim index 9de3ca01f..59283d272 100644 --- a/src/testdir/test_channel.vim +++ b/src/testdir/test_channel.vim @@ -1823,3 +1823,15 @@ func Test_list_args() call s:test_list_args('print("hello\"world\"")', 'hello"world"', 1) call s:test_list_args('print("hello\tworld")', "hello\tworld", 1) endfunc + +" Do this last, it stops any channel log. +func Test_zz_ch_log() + call ch_logfile('Xlog', 'w') + call ch_log('hello there') + call ch_log('%s%s') + call ch_logfile('') + let text = readfile('Xlog') + call assert_match("hello there", text[1]) + call assert_match("%s%s", text[2]) + call delete('Xlog') +endfunc |