From eeee4c702cec7a9c1a4d76c7917c5e31f408eed5 Mon Sep 17 00:00:00 2001 From: mitermayer Date: Sat, 7 Oct 2017 20:34:01 -0700 Subject: adding suppor for vim8 versions older than 8.0.0015 to use async job API --- autoload/prettier.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/prettier.vim b/autoload/prettier.vim index 3602261..34577e9 100644 --- a/autoload/prettier.vim +++ b/autoload/prettier.vim @@ -125,7 +125,7 @@ function! s:Prettier_Job_Close(channel, startSelection, endSelection, bufferName let l:currentBufferName = bufname('%') let l:isInsideAnotherBuffer = a:bufferName != l:currentBufferName ? 1 : 0 - while ch_status(a:channel, {'part': 'out'}) == 'buffered' + while ch_status(a:channel) ==# 'buffered' call add(l:out, ch_read(a:channel)) endwhile -- cgit v1.3