1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

card: Add readline completion for help arguments

--
This commit is contained in:
Werner Koch 2019-02-07 08:16:02 +01:00
parent b5b1f72158
commit 090b5f804a
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

@ -3249,9 +3249,12 @@ command_completion (const char *text, int start, int end)
(void)end;
/* 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)
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;