mirror of https://github.com/golang/go.git
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:
parent
07d2195c66
commit
ee261b75e1
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue