mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-12-15 15:04:34 +08:00
shared/shell: Fix auto-completion of invalid commands
bt_shell always complements the invalid commands, which are the menu/back command.
This commit is contained in:
parent
957d48aff5
commit
c7a7849c8c
@ -498,7 +498,7 @@ static char *find_cmd(const char *text,
|
||||
while ((cmd = entry[*index].cmd)) {
|
||||
(*index)++;
|
||||
|
||||
if (!strncmp(cmd, text, len))
|
||||
if (!strncmp(cmd, text, len) && !command_isskipped(cmd))
|
||||
return strdup(cmd);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user