We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aab6381 commit 0325c5eCopy full SHA for 0325c5e
autoload/go/lint.vim
@@ -251,16 +251,20 @@ function s:lint_job(args)
251
function! s:callback(chan, msg) closure
252
let old_errorformat = &errorformat
253
let &errorformat = l:errformat
254
- caddexpr a:msg
+ if l:listtype == "locationlist"
255
+ lad a:msg
256
+ elseif l:listtype == "quickfix"
257
+ caddexpr a:msg
258
+ endif
259
let &errorformat = old_errorformat
260
261
" TODO(jinleileiking): give a configure to jump or not
262
let l:winnr = winnr()
263
- copen
264
+ let errors = go#list#Get(l:listtype)
265
+ call go#list#Window(l:listtype, len(errors))
266
267
exe l:winnr . "wincmd w"
-
268
endfunction
269
270
function! s:exit_cb(job, exitval) closure
0 commit comments