Skip to content

Commit

Permalink
do not jump to the quickfix window when gometalinter is executed (#1293)
Browse files Browse the repository at this point in the history
* do not jump to the quickfix window when gometalinter is executed
  • Loading branch information
jinleileiking authored and fatih committed May 23, 2017
1 parent 1cc1852 commit 162e263
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions autoload/go/lint.vim
Original file line number Diff line number Diff line change
Expand Up @@ -254,9 +254,13 @@ function s:lint_job(args)
caddexpr a:msg
let &errorformat = old_errorformat

" TODO(arslan): cursor still jumps to first error even If I don't want
" it. Seems like there is a regression somewhere, but not sure where.
" TODO(jinleileiking): give a configure to jump or not
let l:winnr = winnr()

copen

exe l:winnr . "wincmd w"

endfunction

function! s:exit_cb(job, exitval) closure
Expand Down

0 comments on commit 162e263

Please sign in to comment.