Skip to content

Commit

Permalink
VimFormatter: print enclosing ")" if function has no arguments.
Browse files Browse the repository at this point in the history
  • Loading branch information
nsf committed Feb 21, 2012
1 parent 2c1bbbf commit 422e31a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gocode.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ func (*VimFormatter) WriteCandidates(names, types, classes []string, num int) {
if classes[i] == "func" {
word += "("
}
if len(types[i]) == 6 {
word += ")"
}

abbr := fmt.Sprintf("%s %s %s", classes[i], names[i], types[i])
if classes[i] == "func" {
Expand Down

0 comments on commit 422e31a

Please sign in to comment.