diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-12-01 15:34:12 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-12-01 15:34:12 +0100 |
commit | 958dc6923d341390531888058495569d73c356c3 (patch) | |
tree | b85d5c9ae21eb2de4d63550fd13fb510dccdf5af /src/evalfunc.c | |
parent | 0945eaface83e78138fbd40f95cc590bab0e8c86 (diff) | |
download | vim-git-958dc6923d341390531888058495569d73c356c3.tar.gz |
patch 8.0.0107v8.0.0107
Problem: When reading channel output in a timer, messages may go missing.
(Skywind)
Solution: Add the "drop" option. Write error messages in the channel log.
Don't have ch_canread() check for the channel being open.
Diffstat (limited to 'src/evalfunc.c')
-rw-r--r-- | src/evalfunc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c index 88e4852fe..6721173c3 100644 --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -1786,7 +1786,7 @@ f_ceil(typval_T *argvars, typval_T *rettv) static void f_ch_canread(typval_T *argvars, typval_T *rettv) { - channel_T *channel = get_channel_arg(&argvars[0], TRUE, TRUE, 0); + channel_T *channel = get_channel_arg(&argvars[0], FALSE, FALSE, 0); rettv->vval.v_number = 0; if (channel != NULL) |