Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix :GoReportGitHubIssue #2312

Merged
merged 1 commit into from
May 26, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@ If possible, please provide clear steps for reproducing the problem.

### What did you expect to happen?


### What happened instead?


### Configuration (**MUST** fill this out):

#### vim-go version:
Expand All @@ -20,10 +18,13 @@ If possible, please provide clear steps for reproducing the problem.
</pre></details>

#### Vim version (first three lines from `:version`):
<!-- :version -->

#### Go version (`go version`):
#### Go version (`go version`):
<!-- go version -->

#### Go environment
<details><summary><code>go env</code> Output:</summary><br><pre>
<!-- go env -->

</pre></details>
6 changes: 3 additions & 3 deletions autoload/go/issue.vim
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ function! s:issuebody() abort
for l in lines
let body = add(body, l)

if l =~ '^\* Vim version'
if l =~ '^<!-- :version'
redir => out
silent version
redir END
let body = extend(body, split(out, "\n")[0:2])
elseif l =~ '^\* Go version'
elseif l =~ '^<!-- go version -->'
let [out, err] = go#util#Exec(['go', 'version'])
let body = add(body, substitute(l:out, rtrimpat, '', ''))
elseif l =~ '^\* Go environment'
elseif l =~ '^<!-- go env -->'
let [out, err] = go#util#Exec(['go', 'env'])
let body = add(body, substitute(l:out, rtrimpat, '', ''))
endif
Expand Down