Skip to content

Commit

Permalink
Fix struct autocompletion.
Browse files Browse the repository at this point in the history
  • Loading branch information
nsf committed Oct 13, 2017
1 parent 1a78dd6 commit e81ad18
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cursorcontext.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,9 @@ func (ti *token_iterator) extract_type_alike() string {
if ti.token().tok != token.IDENT { // not lib.Foo, return Foo
return b
}
out := ti.token().literal() + "." + b // lib.Foo
ti.go_back()
return ti.token().literal() + "." + b // lib.Foo
return out
}

// Extract the type expression right before the enclosing curly bracket block.
Expand Down

0 comments on commit e81ad18

Please sign in to comment.