diff options
Diffstat (limited to 'source/ui-shared.c')
-rw-r--r--source/ui-shared.c2
1 file changed, 1 insertion, 1 deletion
diff --git a/source/ui-shared.c b/source/ui-shared.c
index 409ad40..7d28c39 100644
--- a/source/ui-shared.c
+++ b/source/ui-shared.c
@@ -485,7 +485,7 @@ static int print_branch_option(const struct reference *ref, void *data)
const char *name = ref->name;
// The switcher runs on every page, so it is bounded like the refs list.
- if (ctx.cfg.max_ref_count && opt->count >= ctx.cfg.max_ref_count)
+ if (ctx.cfg.max_ref_count > 0 && opt->count >= ctx.cfg.max_ref_count)
return -1;
// A name spelled like an option is refused as a head, so offering it
// would only lead to an error page.