diff options
| author | Mitermayer Reis <mitermayer.reis@gmail.com> | 2020-08-06 16:03:39 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-06 16:03:39 +1000 |
| commit | f0076df891baf71fc5df61dce214acbb14f9d230 (patch) | |
| tree | c9c7ab284bbce11090ad82d868da43eac8585696 /autoload | |
| parent | 1033199e52a6a6b32a14c4d5cc9ae1fba6386f69 (diff) | |
| parent | 0f797652138dc1b69e2562fbff30b6a1e86fc0c8 (diff) | |
| download | vim-prettier-f0076df891baf71fc5df61dce214acbb14f9d230.tar.xz | |
Merge branch 'master' into prettier-exec-cmd-buffer
Diffstat (limited to 'autoload')
| -rw-r--r-- | autoload/prettier/job/async/neovim.vim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/autoload/prettier/job/async/neovim.vim b/autoload/prettier/job/async/neovim.vim index 7f69f4e..35e5f82 100644 --- a/autoload/prettier/job/async/neovim.vim +++ b/autoload/prettier/job/async/neovim.vim @@ -42,6 +42,8 @@ endfunction " " note that somehow we exectuing both async and sync on nvim when using the autoformat function! s:onExit(status, info, out, err) abort + if len(a:out) == 0 | return | endif + let l:currentBufferNumber = bufnr('%') let l:isInsideAnotherBuffer = a:info.buf_nr != l:currentBufferNumber ? 1 : 0 let l:last = a:out[len(a:out) - 1] |
