1
0
mirror of https://github.com/golang/go synced 2024-11-26 20:31:25 -07:00

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

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