mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-18 14:17:03 +01:00
card: Add readline completion for help arguments
--
This commit is contained in:
parent
b5b1f72158
commit
090b5f804a
@ -3249,9 +3249,12 @@ command_completion (const char *text, int start, int end)
|
|||||||
(void)end;
|
(void)end;
|
||||||
|
|
||||||
/* If we are at the start of a line, we try and command-complete.
|
/* If we are at the start of a line, we try and command-complete.
|
||||||
* If not, just do nothing for now. */
|
* If not, just do nothing for now. The support for help completion
|
||||||
|
* needs to be more smarter. */
|
||||||
if (!start)
|
if (!start)
|
||||||
return rl_completion_matches (text, command_generator);
|
return rl_completion_matches (text, command_generator);
|
||||||
|
else if (start == 5 && !ascii_strncasecmp (rl_line_buffer, "help ", 5))
|
||||||
|
return rl_completion_matches (text, command_generator);
|
||||||
|
|
||||||
rl_attempted_completion_over = 1;
|
rl_attempted_completion_over = 1;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user