diff src/testdir/test_channel.vim @ 8132:f96536c291d8 v7.4.1360

commit https://github.com/vim/vim/commit/0ba75a9714884895b2ac09733158c47544a8dfb9 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Feb 19 23:21:26 2016 +0100 patch 7.4.1360 Problem: Can't remove a callback with ch_setoptions(). Solution: When passing zero or an empty string remove the callback.
author Christian Brabandt <cb@256bit.org>
date Fri, 19 Feb 2016 23:30:04 +0100
parents 3462f9cfedf8
children 74b44d06d3c7
line wrap: on
line diff
--- a/src/testdir/test_channel.vim
+++ b/src/testdir/test_channel.vim
@@ -149,6 +149,7 @@ func s:communicate(port)
   call ch_setoptions(handle, {'timeout': 1111})
   call assert_fails("call ch_setoptions(handle, {'waittime': 111})", "E475")
   call assert_fails("call ch_setoptions(handle, {'mode': 'json'})", "E475")
+  call ch_setoptions(handle, {'callback': ''})
 
   " Send an eval request that works.
   call assert_equal('ok', ch_sendexpr(handle, 'eval-works'))