aboutsummaryrefslogtreecommitdiff
path: root/runtime/autoload/provider.vim
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/autoload/provider.vim')
-rw-r--r--runtime/autoload/provider.vim4
1 files changed, 3 insertions, 1 deletions
diff --git a/runtime/autoload/provider.vim b/runtime/autoload/provider.vim
index b46ae12b3c..7439b638c2 100644
--- a/runtime/autoload/provider.vim
+++ b/runtime/autoload/provider.vim
@@ -10,7 +10,9 @@ function! provider#stderr_collector(chan_id, data, event) dict
endfunction
function! provider#clear_stderr(chan_id)
- silent! call remove(s:stderr, a:chan_id)
+ if has_key(s:stderr, a:chan_id)
+ call remove(s:stderr, a:chan_id)
+ endif
endfunction
function! provider#get_stderr(chan_id)