From 191a8f56d77dbbe8fa75eaf17b6a4bf030e1b6cc Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Wed, 18 Dec 2019 21:10:19 +0300 Subject: [PATCH] Strip last dummy empty line --- vim/.vim/ftplugin/go/gogetdoc.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- 2.44.0