summaryrefslogtreecommitdiff
path: root/misc/vim/ftplugin/go/fmt.vim
diff options
context:
space:
mode:
Diffstat (limited to 'misc/vim/ftplugin/go/fmt.vim')
-rw-r--r--misc/vim/ftplugin/go/fmt.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/vim/ftplugin/go/fmt.vim b/misc/vim/ftplugin/go/fmt.vim
index 5f7976f5f..359545bd4 100644
--- a/misc/vim/ftplugin/go/fmt.vim
+++ b/misc/vim/ftplugin/go/fmt.vim
@@ -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