aboutsummaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authormitermayer <mitermayer.reis@gmail.com>2018-05-09 14:35:32 -0700
committermitermayer <mitermayer.reis@gmail.com>2018-05-09 14:35:32 -0700
commitbce2e04822de1a6cf568a576f585f932a73e9ecc (patch)
tree13f920555de805853150b998f92f6e05c0c5117c /autoload
parent12a4d5abb93459008123aac44754e00ef24b1e3c (diff)
downloadvim-prettier-bce2e04822de1a6cf568a576f585f932a73e9ecc.tar.xz
Fixing neovim offset for removing extra lines
Diffstat (limited to 'autoload')
-rw-r--r--autoload/prettier/job/async/neovim.vim2
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