author | Max Kellermann <max@duempel.org> | |
Mon, 30 Mar 2009 17:34:01 +0000 (19:34 +0200) | ||
committer | Max Kellermann <max@duempel.org> | |
Mon, 30 Mar 2009 17:34:01 +0000 (19:34 +0200) |
1 | 2 | |||
---|---|---|---|---|
src/options.c | patch | | diff1 | | diff2 | | blob | history |
src/screen_help.c | patch | | diff1 | | diff2 | | blob | history |
diff --combined src/options.c
index 24c4ae5dd083174ad780184e2fca8aa1aa0cf262,3e862d2a8d9f2c425d212b3294150a67aca202f8..df1a9da16fff6fca44da8dc780a4155763a18a7d
--- 1/src/options.c
--- 2/src/options.c
+++ b/src/options.c
/* ncmpc (Ncurses MPD Client)
* (c) 2004-2009 The Music Player Daemon Project
* Project homepage: http://musicpd.org
-
+
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
.scroll = DEFAULT_SCROLL,
.welcome_screen_list = true,
.display_time = true,
+ .jump_prefix_only = true,
#endif
};
option_table[i].shortopt,
tmp,
option_table[i].descrition);
- i++;
}
}
/* the splash screen was removed */
break;
#ifndef NDEBUG
+ #ifndef NCMPC_MINI
case 'K': /* --dump-keys */
read_configuration();
write_key_bindings(stdout, KEYDEF_WRITE_ALL | KEYDEF_COMMENT_ALL);
exit(EXIT_SUCCESS);
break;
+ #endif
#endif
default:
fprintf(stderr,"Unknown Option %c = %s\n", c, arg);
diff --combined src/screen_help.c
index 540fc94ba3c1b22881b8fda507a24e67b3b1126d,bf7411c5c854c6155a1b06143554b38cc4d2be1c..aaa4ff8c740e78c90855ce6bca71781a3aeeef9f
--- 1/src/screen_help.c
--- 2/src/screen_help.c
+++ b/src/screen_help.c
{ 0, CMD_REPEAT, NULL },
{ 0, CMD_RANDOM, NULL },
{ 0, CMD_SINGLE, NULL },
+ { 0, CMD_CONSUME, NULL },
{ 0, CMD_CROSSFADE, NULL },
{ 0, CMD_SHUFFLE, NULL },
{ 0, CMD_DB_UPDATE, NULL },
return true;
}
- lw->selected = lw->start+lw->rows;
+ lw->selected = lw->start;
if (screen_find(lw, help_text_rows,
cmd, list_callback, NULL)) {
/* center the row */