mirror of
https://github.com/matrix-construct/construct
synced 2024-09-27 19:28:52 +02:00
modules/console: Fix prefix matching in help cmd.
This commit is contained in:
parent
bbc26ebb75
commit
739028eeb5
1 changed files with 3 additions and 0 deletions
|
@ -271,6 +271,9 @@ console_cmd__help(opt &out, const string_view &line)
|
|||
if(last == prefix)
|
||||
continue;
|
||||
|
||||
if(prefix != name && !startswith(lstrip(prefix, name), ' '))
|
||||
continue;
|
||||
|
||||
last = prefix;
|
||||
const auto suffix
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue