From f1efdc6eaa0d35801f65dd0e3ef04a1e036986f2 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sat, 27 Apr 2002 02:07:18 +0000 Subject: /BIND list changes: added header/footer, added %#, bind_key -> bind_list git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2722 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-common/core/keyboard.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/fe-common/core/keyboard.c') diff --git a/src/fe-common/core/keyboard.c b/src/fe-common/core/keyboard.c index 502c4c6e..fb1d89fe 100644 --- a/src/fe-common/core/keyboard.c +++ b/src/fe-common/core/keyboard.c @@ -651,6 +651,8 @@ static void cmd_show_keys(const char *searchkey, int full) GSList *info, *key; int len; + printformat(NULL, NULL, MSGLEVEL_CLIENTCRAP, TXT_BIND_HEADER); + len = searchkey == NULL ? 0 : strlen(searchkey); for (info = keyinfos; info != NULL; info = info->next) { KEYINFO_REC *rec = info->data; @@ -660,11 +662,13 @@ static void cmd_show_keys(const char *searchkey, int full) if ((len == 0 || g_strncasecmp(rec->key, searchkey, len) == 0) && (!full || rec->key[len] == '\0')) { - printformat(NULL, NULL, MSGLEVEL_CLIENTCRAP, TXT_BIND_KEY, + printformat(NULL, NULL, MSGLEVEL_CLIENTCRAP, TXT_BIND_LIST, rec->key, rec->info->id, rec->data == NULL ? "" : rec->data); } } } + + printformat(NULL, NULL, MSGLEVEL_CLIENTCRAP, TXT_BIND_FOOTER); } /* SYNTAX: BIND [-delete] [ [ []]] */ -- cgit v1.2.3