Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error window height depends on every error length #3662

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion autoload/go/job.vim
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,13 @@ function! go#job#Options(args)
" only open the error window if user was still in the window from which
" the job was started.
if self.winid == l:winid
call go#list#Window(l:listtype, len(errors))
" height equal to sum of every error length divided by window width
let l:height = 0
for error in errors
let l:height += len(error.text) / winwidth(l:winid) + 1
endfor

call go#list#Window(l:listtype, l:height)
if self.bang
call win_gotoid(l:winid)
else
Expand Down
Loading