Skip to content

Commit

Permalink
* always use the up-to-date client settings
Browse files Browse the repository at this point in the history
  • Loading branch information
DisposaBoy committed Dec 2, 2012
1 parent b8b4130 commit 2fa4d88
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions margo9/m_gocode.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ var (
mGocodeVars = struct {
lck sync.Mutex
lastGopath string
lastBuiltins bool
lastBuiltins string
}{}
)

Expand Down Expand Up @@ -92,15 +92,15 @@ func (m *mGocode) Call() (interface{}, string) {
mGocodeVars.lck.Lock()
defer mGocodeVars.lck.Unlock()

if m.Complete.Builtins != mGocodeVars.lastBuiltins {
builtins := "false"
if m.Complete.Builtins {
builtins = "true"
}
builtins := "false"
if m.Complete.Builtins {
builtins = "true"
}
if mGocodeVars.lastBuiltins != builtins {
if _, e := mGocodeCmdSet(c, "propose-builtins", builtins); e != "" {
logger.Print(e)
} else {
mGocodeVars.lastBuiltins = m.Complete.Builtins
mGocodeVars.lastBuiltins = builtins
}
}

Expand Down

0 comments on commit 2fa4d88

Please sign in to comment.