Skip to content

Commit 541b867

Browse files
committed
Merge pull request #400 from mattn/fix399
fix handling paths in error list. close #399
2 parents 3192696 + 0d1e8c9 commit 541b867

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/go/tool.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function! go#tool#ShowErrors(out)
4949
if !empty(fatalerrors)
5050
call add(errors, {"text": fatalerrors[1]})
5151
elseif !empty(tokens)
52-
call add(errors, {"filename" : expand("%:p:h:") . "/" . tokens[1],
52+
call add(errors, {"filename" : fnamemodify(tokens[1], ':p'),
5353
\"lnum": tokens[2],
5454
\"text": tokens[3]})
5555
elseif !empty(errors)

0 commit comments

Comments
 (0)