diff options
author | James McCoy <jamessan@jamessan.com> | 2017-08-26 13:46:04 -0400 |
---|---|---|
committer | James McCoy <jamessan@jamessan.com> | 2017-08-26 13:49:39 -0400 |
commit | ffdddcd93dda3dd6f9663ff0d8a3115b9e0eae14 (patch) | |
tree | 7f3091f1b66b1b0eaa240db0186575940c33c86c | |
parent | f612e99db5a66bd52c0ab050f734b86e9d8128aa (diff) | |
download | rneovim-ffdddcd93dda3dd6f9663ff0d8a3115b9e0eae14.tar.gz rneovim-ffdddcd93dda3dd6f9663ff0d8a3115b9e0eae14.tar.bz2 rneovim-ffdddcd93dda3dd6f9663ff0d8a3115b9e0eae14.zip |
provider: Remove dict attribute from stderr_collector
If an autoloaded function hasn't been resolved before it is used in
function(), the self dict will not be created which causes E725 when
calling the function. Since self isn't being used in
provider#stderr_collector, we can remove the dict attribute to
workaround the self dict bug[0].
Closes #7115
[0]: https://groups.google.com/d/msg/vim_dev/I7AXOyv-P4o/DzbyOxDHBgAJ
-rw-r--r-- | runtime/autoload/provider.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/autoload/provider.vim b/runtime/autoload/provider.vim index 7439b638c2..e6514f5ba8 100644 --- a/runtime/autoload/provider.vim +++ b/runtime/autoload/provider.vim @@ -2,7 +2,7 @@ let s:stderr = {} -function! provider#stderr_collector(chan_id, data, event) dict +function! provider#stderr_collector(chan_id, data, event) let stderr = get(s:stderr, a:chan_id, ['']) let stderr[-1] .= a:data[0] call extend(stderr, a:data[1:]) |