From bce2e04822de1a6cf568a576f585f932a73e9ecc Mon Sep 17 00:00:00 2001 From: mitermayer Date: Wed, 9 May 2018 14:35:32 -0700 Subject: [PATCH] Fixing neovim offset for removing extra lines --- autoload/prettier/job/async/neovim.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/prettier/job/async/neovim.vim b/autoload/prettier/job/async/neovim.vim index a554f70..ce3b349 100644 --- a/autoload/prettier/job/async/neovim.vim +++ b/autoload/prettier/job/async/neovim.vim @@ -46,7 +46,7 @@ function! s:onExit(status, info, out, err) abort let l:currentBufferNumber = bufnr('%') let l:isInsideAnotherBuffer = a:info.buf_nr != l:currentBufferNumber ? 1 : 0 let l:last = a:out[len(a:out) - 1] - let l:out = l:last ==? '' ? a:out[0:len(a:out) - 3] : a:out + let l:out = l:last ==? '' ? a:out[0:len(a:out) - 2] : a:out " parsing errors if a:status != 0