Skip to content
Commit cbe07ebe authored by Boris Brezillon's avatar Boris Brezillon Committed by Tom Rini
Browse files

common: command: Fix command auto-completion



When auto-completing command arguments, the last argument is not
necessarily the one we need to auto-complete. When the last character is
a space, a tab or '\0' what we want instead is list all possible values,
or if there's only one possible value, place this value on the command
line instead of trying to suffix the last valid argument with missing
chars.

Signed-off-by: default avatarBoris Brezillon <boris.brezillon@bootlin.com>
Reviewed-by: default avatarTom Rini <trini@konsulko.com>
parent 2e89bbef
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment