diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2014-05-19 13:43:19 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-05-19 22:23:55 +0200 |
commit | e5c59c386784d9c52505823ee293c94f633a8744 (patch) | |
tree | 6996935cbfa9941616dc83afed2e8b58bc6dc343 /commands/insmod.c | |
parent | 46e8eb82199de1725805821df9b689fc38b95c7f (diff) | |
download | barebox-e5c59c386784d9c52505823ee293c94f633a8744.tar.gz barebox-e5c59c386784d9c52505823ee293c94f633a8744.tar.xz |
complete: Fix completion after options
the command specific complete callbacks only work when no
option is typed already. For example "devinfo <tab><tab>"
correctly completes the devices, but "devinfo -x <tab><tab>"
does nothing. That is because the options are passed to
the input string of the completion handlers. Skip the option
string by finding the last space in the input string. This
is not perfect since "devinfo -f<tab><tab>" still does not
work, but it's better than what we have now.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/insmod.c')
0 files changed, 0 insertions, 0 deletions