misc/vim: send Fmt errors to the quickfix list instead of the location list.

Output from gofmt is a list of errors, so they should appear in the error list.

R=adg
CC=golang-dev
https://golang.org/cl/33760043
This commit is contained in:
David Symonds 2013-11-27 19:32:15 +11:00
parent 07d2195c66
commit ee261b75e1
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ function! s:GoFormat()
endif
undo
if !empty(errors)
call setloclist(0, errors, 'r')
call setqflist(errors, 'r')
endif
echohl Error | echomsg "Gofmt returned error" | echohl None
endif