From: Sergey Matveev Date: Wed, 18 Dec 2019 18:10:19 +0000 (+0300) Subject: Strip last dummy empty line X-Git-Url: http://www.git.stargrave.org/?p=dotfiles.git;a=commitdiff_plain;h=191a8f56d77dbbe8fa75eaf17b6a4bf030e1b6cc Strip last dummy empty line --- diff --git a/vim/.vim/ftplugin/go/gogetdoc.vim b/vim/.vim/ftplugin/go/gogetdoc.vim index 199b39f..3dee9b4 100644 --- a/vim/.vim/ftplugin/go/gogetdoc.vim +++ b/vim/.vim/ftplugin/go/gogetdoc.vim @@ -17,7 +17,7 @@ function! GoGetDocGot(ch) return endif let msgs = msgs[2:] - let b:godocid = popup_atcursor(msgs[2:], {"wrap": 0, "title": msgs[0], "move": "word"}) + let b:godocid = popup_atcursor(msgs[2:-2], {"wrap": 0, "title": msgs[0], "move": "word"}) endfunction function! s:GoGetDoc()