From: Thomas Jansen Date: Thu, 29 Oct 2009 20:05:55 +0000 (+0100) Subject: command: whitespace cosmetics X-Git-Tag: release-0.16~53 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2decb612d3ad809c796c731ebf031e9304d8c65a;p=ncmpc.git command: whitespace cosmetics --- diff --git a/src/command.c b/src/command.c index 3fe825c..6b90e56 100644 --- a/src/command.c +++ b/src/command.c @@ -194,7 +194,7 @@ static command_definition_t cmds[] = { 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") }, @@ -355,28 +355,28 @@ set_key_flags(command_definition_t *cp, command_t command, int flags) 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 *