Dont display empty match groups
This commit is contained in:
parent
ea1842407d
commit
d7b0aa48c9
@ -258,6 +258,9 @@ func (self *Readline) completion_screen_lines() ([]string, bool) {
|
|||||||
}
|
}
|
||||||
lines := make([]string, 0, self.completions.current.num_of_matches)
|
lines := make([]string, 0, self.completions.current.num_of_matches)
|
||||||
for _, g := range self.completions.current.results.Groups {
|
for _, g := range self.completions.current.results.Groups {
|
||||||
|
if len(g.Matches) == 0 {
|
||||||
|
continue
|
||||||
|
}
|
||||||
if g.Title != "" {
|
if g.Title != "" {
|
||||||
lines = append(lines, self.fmt_ctx.Title(g.Title))
|
lines = append(lines, self.fmt_ctx.Title(g.Title))
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user