Merge branch 'master' of https://github.com/Juneezee/kitty
This commit is contained in:
commit
48c80a218b
1 changed files with 3 additions and 6 deletions
|
|
@ -417,12 +417,9 @@ func (self *Command) FindOptions(name_with_hyphens string) []*Option {
|
|||
depth := 0
|
||||
for p := self.Parent; p != nil; p = p.Parent {
|
||||
depth++
|
||||
x := p.FindOptions(name_with_hyphens)
|
||||
if x != nil {
|
||||
for _, po := range x {
|
||||
if po.Depth >= depth {
|
||||
ans = append(ans, po)
|
||||
}
|
||||
for _, po := range p.FindOptions(name_with_hyphens) {
|
||||
if po.Depth >= depth {
|
||||
ans = append(ans, po)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue