]> Cypherpunks repositories - gostls13.git/commitdiff
misc/vim: send Fmt errors to the quickfix list instead of the location list.
authorDavid Symonds <dsymonds@golang.org>
Wed, 27 Nov 2013 08:32:15 +0000 (19:32 +1100)
committerDavid Symonds <dsymonds@golang.org>
Wed, 27 Nov 2013 08:32:15 +0000 (19:32 +1100)
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

misc/vim/ftplugin/go/fmt.vim

index 5f7976f5f6ead434462ffd20245d7fb6f9b6a70a..359545bd4051da18bb08234f3fe59cc61437a9c3 100644 (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