diff src/eval.c @ 8240:60586ce747c4 v7.4.1413

commit https://github.com/vim/vim/commit/8b374215ccd35003b95ba1df8f12e03bf8a8adc3 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Feb 24 20:43:06 2016 +0100 patch 7.4.1413 Problem: When calling ch_close() the close callback is invoked, even though the docs say it isn't. (Christian J. Robinson) Solution: Don't call the close callback.
author Christian Brabandt <cb@256bit.org>
date Wed, 24 Feb 2016 20:45:08 +0100
parents 51ca0cee512e
children c4ffdda8cdfd
line wrap: on
line diff
--- a/src/eval.c
+++ b/src/eval.c
@@ -10213,7 +10213,7 @@ f_ch_close(typval_T *argvars, typval_T *
     channel_T *channel = get_channel_arg(&argvars[0]);
 
     if (channel != NULL)
-	channel_close(channel);
+	channel_close(channel, FALSE);
 }
 
 # ifdef FEAT_JOB