From 4dd0a85fc49db7d8baa4d3bf270ea6de53229266 Mon Sep 17 00:00:00 2001 From: QC Date: Tue, 17 Mar 2015 20:05:37 +0100 Subject: [PATCH] Update header. --- include/helper.h | 15 +++++++++++++++ source/rofi.c | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/include/helper.h b/include/helper.h index 76b69b85..bd76d9a3 100644 --- a/include/helper.h +++ b/include/helper.h @@ -131,6 +131,21 @@ void create_pid_file ( const char *pidfile ); * This functions exits the program with 1 when it finds an invalid configuration. */ void config_sanity_check ( void ); + +/** + * @param arg string to parse. + * + * Parses a string into an character. + * + * @returns character. + */ char helper_parse_char ( const char *arg ); + +/** + * @param argc number of arguments. + * @param argv Array of arguments. + * + * Set the application arguments. + */ void cmd_set_arguments ( int argc, char **argv ); #endif // __HELPER_H__ diff --git a/source/rofi.c b/source/rofi.c index e06bdc1e..6e9f0d9c 100644 --- a/source/rofi.c +++ b/source/rofi.c @@ -788,7 +788,7 @@ static void menu_refilter ( MenuState *state, char **lines, menu_match_cb mmc, v } state->selected = MIN ( state->selected, state->filtered_lines - 1 ); - if ( config.auto_select == TRUE && state->filtered_lines == 1 && state->num_lines > 1) { + if ( config.auto_select == TRUE && state->filtered_lines == 1 && state->num_lines > 1 ) { *( state->selected_line ) = state->line_map[state->selected]; state->retv = MENU_OK; state->quit = TRUE;