From 4350053956dd9152e6008b9dbf7d9c7a66dc46f7 Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Mon, 6 Jan 2014 15:34:17 +0100 Subject: [PATCH] Some clean up Signed-off-by: Sebastian Ramacher --- config.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/config.c b/config.c index 6c12ae9..aea58d1 100644 --- a/config.c +++ b/config.c @@ -109,7 +109,6 @@ config_load_default(zathura_t* zathura) int int_value = 0; float float_value = 0; bool bool_value = false; - bool inc_search = true; char* string_value = NULL; girara_session_t* gsession = zathura->ui.session; @@ -193,8 +192,9 @@ config_load_default(zathura_t* zathura) girara_setting_add(gsession, "open-first-page", &bool_value, BOOLEAN, false, _("Always open on first page"), NULL, NULL); bool_value = false; girara_setting_add(gsession, "nohlsearch", &bool_value, BOOLEAN, false, _("Highlight search results"), cb_nohlsearch_changed, NULL); - inc_search = false; - girara_setting_add(gsession, "incremental-search", &inc_search, BOOLEAN, false, _("Enable incremental search"), cb_incsearch_changed, NULL); +#define INCREMENTAL_SEARCH false + bool_value = INCREMENTAL_SEARCH; + girara_setting_add(gsession, "incremental-search", &bool_value, BOOLEAN, false, _("Enable incremental search"), cb_incsearch_changed, NULL); bool_value = true; girara_setting_add(gsession, "abort-clear-search", &bool_value, BOOLEAN, false, _("Clear search results on abort"), NULL, NULL); bool_value = false; @@ -389,8 +389,8 @@ config_load_default(zathura_t* zathura) girara_inputbar_command_add(gsession, "hlsearch", NULL, cmd_hlsearch, NULL, _("Highlight current search results")); girara_inputbar_command_add(gsession, "version", NULL, cmd_version, NULL, _("Show version information")); - girara_special_command_add(gsession, '/', cmd_search, inc_search, FORWARD, NULL); - girara_special_command_add(gsession, '?', cmd_search, inc_search, BACKWARD, NULL); + girara_special_command_add(gsession, '/', cmd_search, INCREMENTAL_SEARCH, FORWARD, NULL); + girara_special_command_add(gsession, '?', cmd_search, INCREMENTAL_SEARCH, BACKWARD, NULL); /* add shortcut mappings */ girara_shortcut_mapping_add(gsession, "abort", sc_abort);