]> Sergey Matveev's repositories - dotfiles.git/commitdiff
Strip last dummy empty line
authorSergey Matveev <stargrave@stargrave.org>
Wed, 18 Dec 2019 18:10:19 +0000 (21:10 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Wed, 18 Dec 2019 18:10:19 +0000 (21:10 +0300)
vim/.vim/ftplugin/go/gogetdoc.vim

index 199b39f3043b929250fbbac22fb26f798efaf869..3dee9b403ddaf6a3892f1faa027a25cf3e495130 100644 (file)
@@ -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()