about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-08-26 00:48:01 +0100
committerJames Booth <boothj5@gmail.com>2015-08-26 00:48:01 +0100
commit48630d45a44ddc22284893e81b15b3880107cbd1 (patch)
treecd8e7106b8892ef74a62e61e61d20c59726d5fa3 /src
parent46256513400f4e84a209611f43d6e9d563af7deb (diff)
downloadprofani-tty-48630d45a44ddc22284893e81b15b3880107cbd1.tar.gz
Added check for libgpgme on account autocomplete
Diffstat (limited to 'src')
-rw-r--r--src/command/command.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/command/command.c b/src/command/command.c
index 1eada95a..ae8257ce 100644
--- a/src/command/command.c
+++ b/src/command/command.c
@@ -3609,6 +3609,7 @@ _account_autocomplete(ProfWin *window, const char * const input)
                 g_strfreev(args);
                 return found;
             }
+#ifdef HAVE_LIBGPGME
         } else if ((g_strv_length(args) > 3) && (g_strcmp0(args[2], "pgpkeyid")) == 0) {
             g_string_append(beginning, " ");
             g_string_append(beginning, args[2]);
@@ -3618,6 +3619,7 @@ _account_autocomplete(ProfWin *window, const char * const input)
                 g_strfreev(args);
                 return found;
             }
+#endif
         } else {
             found = autocomplete_param_with_ac(input, beginning->str, account_set_ac, TRUE);
             g_string_free(beginning, TRUE);