diff --git a/modules/console.cc b/modules/console.cc index e8cc0808d..bbdb9e06b 100644 --- a/modules/console.cc +++ b/modules/console.cc @@ -271,8 +271,8 @@ console_cmd__help(opt &out, const string_view &line) if(last == prefix) continue; - if(prefix != name && !startswith(lstrip(prefix, name), ' ')) - continue; + if(name && prefix != name && !startswith(lstrip(prefix, name), ' ')) + break; last = prefix; const auto suffix