summaryrefslogtreecommitdiffstats
path: root/commands/drvinfo.c
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2023-11-09 13:25:50 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2023-11-21 08:47:38 +0100
commitcbee6ccd7a38f43c07ddd8f826b67fd52f3c69d2 (patch)
tree0181bef965e52e68e002b1d7c2611f01d294f5a8 /commands/drvinfo.c
parent1c04c0e3289943a07d9f6bbef73edceaa96d3091 (diff)
downloadbarebox-cbee6ccd7a38f43c07ddd8f826b67fd52f3c69d2.tar.gz
barebox-cbee6ccd7a38f43c07ddd8f826b67fd52f3c69d2.tar.xz
complete: add support for spaces in completions
Drivers have spaces inside their names, which makes tab completion tricky as it restarts for every separate argument. Support for doing this in readline and hush landed in commits 1498093ccd11 ("readline: Complete strings containing whitespaces correctly") and 70e0885229d2 ("hush: Fix handling '\ '") respectively. This only goes one way though, escape a completion suggestion. The suggestion needs to be unescaped again, so repeated <Tab> usage after modifying the prompt is understood. For this to work, skip backslashes in the argument being completed. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20231109122551.1486020-2-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/drvinfo.c')
0 files changed, 0 insertions, 0 deletions