{"action":"created","issue":{"url":"https://api.github.com/repos/fatih/vim-go/issues/791","repository_url":"https://api.github.com/repos/fatih/vim-go","labels_url":"https://api.github.com/repos/fatih/vim-go/issues/791/labels{/name}","comments_url":"https://api.github.com/repos/fatih/vim-go/issues/791/comments","events_url":"https://api.github.com/repos/fatih/vim-go/issues/791/events","html_url":"https://github.com/fatih/vim-go/issues/791","id":147162298,"number":791,"title":"jump to definition under cursor: go-def-tab","user":{"login":"CodingBerg","id":8282230,"avatar_url":"https://avatars.githubusercontent.com/u/8282230?v=3","gravatar_id":"","url":"https://api.github.com/users/CodingBerg","html_url":"https://github.com/CodingBerg","followers_url":"https://api.github.com/users/CodingBerg/followers","following_url":"https://api.github.com/users/CodingBerg/following{/other_user}","gists_url":"https://api.github.com/users/CodingBerg/gists{/gist_id}","starred_url":"https://api.github.com/users/CodingBerg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CodingBerg/subscriptions","organizations_url":"https://api.github.com/users/CodingBerg/orgs","repos_url":"https://api.github.com/users/CodingBerg/repos","events_url":"https://api.github.com/users/CodingBerg/events{/privacy}","received_events_url":"https://api.github.com/users/CodingBerg/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-04-09T20:45:14Z","updated_at":"2016-04-10T20:57:36Z","closed_at":"2016-04-10T18:07:44Z","body":"### Actual behavior\r\n\r\nIf the target buffer is already displayed in one of the tabs, instead of focusing that tab and jumping to where definition line begins, I got an error:\r\n\r\n```\r\nError detected while processing function go#def#JumpMode[17]..<SNR>63_godefJump:\r\nline   35:\r\nE924: Current window was closed\r\n```\r\n\r\nAfter this, It goes to already opened tab at line 1.\r\n\r\n### Expected behavior\r\n\r\nIt should focus already opened tab and jump to definition line no matter how many times I jump to the same definition using Go-To-Definiton.\r\n\r\n### Steps to reproduce:\r\n\r\n1. Open main.go (1st tab)\r\n2. Go above some function and press `<Leader>+f`\r\n3. It opens new tab and jumps to where definition line begins (2nd tab)\r\n4. go back to 1st tab and press `<Leader>+f `again\r\n5. It returns above error, and then goes to already opened tab (2nd tab), positioning at line 1, instead of jumping to where definition line begins\r\n\r\n### Configuration\r\n\r\n`au FileType go nmap <Leader>f <Plug>(go-def-tab)`\r\n\r\n### VIM Version\r\n\r\n```\r\n$ vim --version\r\nVIM - Vi IMproved 7.4 (2013 Aug 10, compiled Apr  9 2016 21:25:58)\r\n```\r\nUsing pathogen as plugin manager.\r\nInstalled using brew, on OS X El Capitan, v10.11.4.\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/fatih/vim-go/issues/comments/208069470","html_url":"https://github.com/fatih/vim-go/issues/791#issuecomment-208069470","issue_url":"https://api.github.com/repos/fatih/vim-go/issues/791","id":208069470,"user":{"login":"fatih","id":438920,"avatar_url":"https://avatars.githubusercontent.com/u/438920?v=3","gravatar_id":"","url":"https://api.github.com/users/fatih","html_url":"https://github.com/fatih","followers_url":"https://api.github.com/users/fatih/followers","following_url":"https://api.github.com/users/fatih/following{/other_user}","gists_url":"https://api.github.com/users/fatih/gists{/gist_id}","starred_url":"https://api.github.com/users/fatih/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fatih/subscriptions","organizations_url":"https://api.github.com/users/fatih/orgs","repos_url":"https://api.github.com/users/fatih/repos","events_url":"https://api.github.com/users/fatih/events{/privacy}","received_events_url":"https://api.github.com/users/fatih/received_events","type":"User","site_admin":false},"created_at":"2016-04-10T20:57:36Z","updated_at":"2016-04-10T20:57:36Z","body":"No, it also works with my current Vim version. I also installed it via Brew:\r\n\r\n```\r\n$ vim --version\r\nVIM - Vi IMproved 7.4 (2013 Aug 10, compiled Mar 23 2016 15:44:07)\r\nMacOS X (unix) version\r\nIncluded patches: 1-1589\r\nCompiled by Homebrew\r\n```"}}