aboutsummaryrefslogtreecommitdiff
path: root/autoload/prettier.vim
diff options
context:
space:
mode:
Diffstat (limited to 'autoload/prettier.vim')
-rw-r--r--autoload/prettier.vim5
1 files changed, 4 insertions, 1 deletions
diff --git a/autoload/prettier.vim b/autoload/prettier.vim
index f00426e..dcd9926 100644
--- a/autoload/prettier.vim
+++ b/autoload/prettier.vim
@@ -285,7 +285,10 @@ function! s:Apply_Prettier_Format(lines, startSelection, endSelection) abort
silent! call append(l:idx, l:line)
let l:idx += 1
endfor
-
+
+ " delete trailing newline introduced by the above append procedure
+ silent! execute '$delete _'
+
" Restore view
call winrestview(l:winview)
endfunction