Skip to content

Commit b84c168

Browse files
authored
Remove blank line at Neovim (#130)
1 parent e3d4118 commit b84c168

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

autoload/pydocstring.vim

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,12 @@ function! s:exit_callback(msg) abort
8989
endif
9090
let view = winsaveview()
9191
silent execute '% delete'
92+
93+
" Hack for Neovima PydocstringFormat
94+
" Neovim add blank line to the end of list
95+
if has('nvim') && s:results[-1] == ''
96+
call remove(s:results, -1)
97+
endif
9298
call setline(1, s:results)
9399
call winrestview(view)
94100
let s:results = []

0 commit comments

Comments
 (0)