Skip to content

Commit 0575722

Browse files
committed
improvements for neovim when set go_term_enabled
1 parent 1b98bd8 commit 0575722

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

autoload/go/term.vim

+5-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,11 @@ function! s:on_exit(job_id, exit_status, event) dict abort
9090

9191
call win_gotoid(self.winid)
9292

93-
call go#list#Populate(l:listtype, errors, self.cmd)
93+
let title = self.cmd
94+
if type(title) == 3
95+
let title = join(self.cmd)
96+
endif
97+
call go#list#Populate(l:listtype, errors, title)
9498
call go#list#Window(l:listtype, len(errors))
9599
if !self.bang
96100
call go#list#JumpToFirst(l:listtype)

autoload/go/tool.vim

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ function! go#tool#ParseErrors(lines) abort
118118
" Preserve indented lines.
119119
" This comes up especially with multi-line test output.
120120
if match(line, '^\s') >= 0
121-
call add(errors, {"text": line})
121+
call add(errors, {"text": substitute(line, '\r$', '', '')})
122122
endif
123123
endif
124124
endfor

0 commit comments

Comments
 (0)