Neovim: fix stdout logic

References #218.
This commit is contained in:
Marco Hinz 2017-02-15 15:27:17 +01:00
parent a2c28f6540
commit f6d76b41d6
No known key found for this signature in database
GPG Key ID: 1C980A1B657B4A4F

View File

@ -25,7 +25,7 @@ function! s:callback_stdout_nvim(_job_id, data, _event) dict abort
if empty(self.stdoutbuf) || empty(self.stdoutbuf[-1])
let self.stdoutbuf += a:data
else
let self.stdoutbuf = self.stdoutbuf[:2]
let self.stdoutbuf = self.stdoutbuf[:-2]
\ + [self.stdoutbuf[-1] . get(a:data, 0, '')]
\ + a:data[1:]
endif