aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/gpg-card-tool.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/gpg-card-tool.c b/tools/gpg-card-tool.c
index fd7aa9a7e..08248f766 100644
--- a/tools/gpg-card-tool.c
+++ b/tools/gpg-card-tool.c
@@ -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;