diff options
| author | mitermayer <mitermayer.reis@gmail.com> | 2018-05-09 14:35:32 -0700 |
|---|---|---|
| committer | mitermayer <mitermayer.reis@gmail.com> | 2018-05-09 14:35:32 -0700 |
| commit | bce2e04822de1a6cf568a576f585f932a73e9ecc (patch) | |
| tree | 13f920555de805853150b998f92f6e05c0c5117c | |
| parent | 12a4d5abb93459008123aac44754e00ef24b1e3c (diff) | |
| download | vim-prettier-bce2e04822de1a6cf568a576f585f932a73e9ecc.tar.xz | |
Fixing neovim offset for removing extra lines
| -rw-r--r-- | autoload/prettier/job/async/neovim.vim | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
