Code

added scroll-offset option; fixed scrolling bug
[ncmpc.git] / src / options.c
index 24c4ae5dd083174ad780184e2fca8aa1aa0cf262..5d8b1fda448cac033905d64a5ff602a94c6926be 100644 (file)
@@ -56,6 +56,7 @@ options_t options = {
        .lyrics_timeout = DEFAULT_LYRICS_TIMEOUT,
 #endif
        .find_wrap = true,
+       .scroll_offset = 0,
        .wide_cursor = true,
        .audible_bell = true,
        .bell_on_wrap = true,
@@ -64,6 +65,7 @@ options_t options = {
        .scroll = DEFAULT_SCROLL,
        .welcome_screen_list = true,
        .display_time = true,
+       .jump_prefix_only = true,
 #endif
 };
 
@@ -272,11 +274,13 @@ handle_option(int c, const char *arg)
                /* 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);