Gather the pick key's load and render sides in pick.go, and name each thing for what it is
This commit is contained in:
@@ -152,7 +152,7 @@ func readField(s *drawstate.State, t *template, env renderEnv, a arm) readValue
|
||||
switch {
|
||||
case a.kind == namedRead:
|
||||
return readName(s, env, a)
|
||||
case env.pick != nil && !grammar.IsRef(a.head) && env.keeps(a):
|
||||
case keptInPick(env, a):
|
||||
return readUnder(s, t, env, a)
|
||||
}
|
||||
env.pick = nil
|
||||
|
||||
Reference in New Issue
Block a user