]> Sergey Matveev's repositories - dotfiles.git/blobdiff - vim/.vim/ftplugin/go/gogetdoc.vim
S-F6 is changed with the new tmux
[dotfiles.git] / vim / .vim / ftplugin / go / gogetdoc.vim
index 199b39f3043b929250fbbac22fb26f798efaf869..9105258bc3288fad8369abe68cc2007f1e7c8248 100644 (file)
@@ -17,13 +17,14 @@ 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()
     if exists("b:gogetdoc_job") && job_status(b:gogetdoc_job) == "run" | return | endif
-    let pos = line2byte(line(".")) + col(".") - 1
+    let pos = line2byte(line(".")) + col(".") - 2
     let cmdline = "gogetdoc -pos " . expand("%p") . ":#" . pos
+    echomsg cmdline
     let b:gogetdoc_job = job_start(cmdline, {
         \"in_mode": "nl",
         \"err_io": "null",