0
0
Fork 0
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:
Jason Volk 2018-09-01 22:17:48 -07:00
parent bbc26ebb75
commit 739028eeb5

View file

@ -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
{