@@ -143,7 +143,7 @@ type Completions struct {
145func (c Completions) Limits() (depth, items int) {
145func (c Completions) Limits() (depth, items int) {
146− return ptrValOr(c.MaxDepth, -1), ptrValOr(c.MaxItems, -1)
146+ return ptrValOr(c.MaxDepth, 0), ptrValOr(c.MaxItems, 0)
149type Permissions struct {
149type Permissions struct {
@@ -269,7 +269,7 @@ type ToolLs struct {
271func (t ToolLs) Limits() (depth, items int) {
271func (t ToolLs) Limits() (depth, items int) {
272− return ptrValOr(t.MaxDepth, -1), ptrValOr(t.MaxItems, -1)
272+ return ptrValOr(t.MaxDepth, 0), ptrValOr(t.MaxItems, 0)
275// Config holds the configuration for crush.
275// Config holds the configuration for crush.