about summary refs log tree commit diff stats
path: root/src/command/command.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-08-25 23:48:21 +0100
committerJames Booth <boothj5@gmail.com>2015-08-25 23:48:21 +0100
commit4b0ee89fa3dca49604532c0185cf48cf601ac08a (patch)
tree81c5ceb7d107d18de60ac8ca51c261b40628cf57 /src/command/command.c
parentcb19be2ffcc1f2881427cc12f01ac8790d9236c1 (diff)
downloadprofani-tty-4b0ee89fa3dca49604532c0185cf48cf601ac08a.tar.gz
PGP: Added key ID autocompletion to /account setting
Diffstat (limited to 'src/command/command.c')
-rw-r--r--src/command/command.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/command/command.c b/src/command/command.c
index 487c9e02..1eada95a 100644
--- a/src/command/command.c
+++ b/src/command/command.c
@@ -3609,6 +3609,15 @@ _account_autocomplete(ProfWin *window, const char * const input)
                 g_strfreev(args);
                 return found;
             }
+        } else if ((g_strv_length(args) > 3) && (g_strcmp0(args[2], "pgpkeyid")) == 0) {
+            g_string_append(beginning, " ");
+            g_string_append(beginning, args[2]);
+            found = autocomplete_param_with_func(input, beginning->str, p_gpg_autocomplete_key);
+            g_string_free(beginning, TRUE);
+            if (found) {
+                g_strfreev(args);
+                return found;
+            }
         } else {
             found = autocomplete_param_with_ac(input, beginning->str, account_set_ac, TRUE);
             g_string_free(beginning, TRUE);