Add dict to function refferencing self

This is no explicit problem in Vim, however Neovim diverged in this
behaviour from Vim and requires the dict attribute to be present before
accessing the self attribute.

See neovim/neovim#5763
This commit is contained in:
Hirokazu Hata
2016-12-13 16:44:39 +09:00
committed by Christian Brabandt
parent 7cb5c24151
commit dfc0cb772a
2 changed files with 6 additions and 6 deletions

View File

@@ -82,7 +82,7 @@ endif
" available. This way we avoid overwriting v:shell_error, which might
" potentially disrupt other plugins.
if has('nvim')
function! s:system_job_handler(job_id, data, event)
function! s:system_job_handler(job_id, data, event) dict
if a:event == 'stdout'
let self.buf .= join(a:data)
endif