diff options
| author | mitermayer <mitermayer.reis@gmail.com> | 2018-05-09 14:35:32 -0700 |
|---|---|---|
| committer | mitermayer <mitermayer.reis@gmail.com> | 2019-08-25 21:11:49 -0700 |
| commit | ba45c6daceae31dba3c2b45ddbe4a320fa59414b (patch) | |
| tree | de8362280524e8c1bc0b4afd563315bb1c49630c | |
| parent | e2121c52c0434acdc8f0bea43690ae3b7a0e36dc (diff) | |
| download | vim-prettier-ba45c6daceae31dba3c2b45ddbe4a320fa59414b.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 |
