summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: eada142)
raw | patch | inline | side by side (parent: eada142)
author | Thomas Jansen <mithi@mithi.net> | |
Thu, 29 Oct 2009 20:05:55 +0000 (21:05 +0100) | ||
committer | Thomas Jansen <mithi@mithi.net> | |
Thu, 29 Oct 2009 20:05:55 +0000 (21:05 +0100) |
src/command.c | patch | blob | history |
diff --git a/src/command.c b/src/command.c
index 3fe825c39fc6be6b0d79f2b4b6c55863949573b3..6b90e5628965bbd490153095822b8e824b020e94 100644 (file)
--- a/src/command.c
+++ b/src/command.c
N_("Next screen") },
{ { STAB, 0, 0 }, 0, CMD_SCREEN_PREVIOUS, "screen-prev",
N_("Previous screen") },
- { { '`', 0, 0 }, 0, CMD_SCREEN_SWAP, "screen-swap",
+ { { '`', 0, 0 }, 0, CMD_SCREEN_SWAP, "screen-swap",
N_("Swap to most recent screen") },
const char *
get_key_names(command_t command, int all)
{
- int i;
-
- i=0;
- while (cmds[i].description) {
- if (cmds[i].command == command) {
- int j;
- static char keystr[80];
-
- g_strlcpy(keystr, key2str(cmds[i].keys[0]), sizeof(keystr));
- if (!all)
- return keystr;
- j=1;
- while (j < MAX_COMMAND_KEYS && cmds[i].keys[j] > 0) {
- g_strlcat(keystr, " ", sizeof(keystr));
- g_strlcat(keystr, key2str(cmds[i].keys[j]), sizeof(keystr));
- j++;
- }
- return keystr;
- }
- i++;
- }
- return NULL;
+ int i;
+
+ i=0;
+ while (cmds[i].description) {
+ if (cmds[i].command == command) {
+ int j;
+ static char keystr[80];
+
+ g_strlcpy(keystr, key2str(cmds[i].keys[0]), sizeof(keystr));
+ if (!all)
+ return keystr;
+ j=1;
+ while (j < MAX_COMMAND_KEYS && cmds[i].keys[j] > 0) {
+ g_strlcat(keystr, " ", sizeof(keystr));
+ g_strlcat(keystr, key2str(cmds[i].keys[j]), sizeof(keystr));
+ j++;
+ }
+ return keystr;
+ }
+ i++;
+ }
+ return NULL;
}
const char *