Skip to content

Commit

Permalink
Fix bug introduced by "History purge timeout"
Browse files Browse the repository at this point in the history
  • Loading branch information
CristianHenzel authored Jun 29, 2018
1 parent c419051 commit 99d1d57
Showing 1 changed file with 26 additions and 8 deletions.
34 changes: 26 additions & 8 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,32 @@ static gboolean status_menu_lock = FALSE;
static gboolean actions_lock = FALSE;

/* Init preferences structure */
prefs_t prefs = {DEF_USE_COPY, DEF_USE_PRIMARY, DEF_SYNCHRONIZE,
DEF_AUTOMATIC_PASTE, DEF_SHOW_INDEXES, DEF_SAVE_URIS,
DEF_USE_RMB_MENU, DEF_SAVE_HISTORY, DEF_HISTORY_LIMIT,
DEF_ITEMS_MENU, DEF_STATICS_SHOW, DEF_STATICS_ITEMS,
DEF_HYPERLINKS_ONLY, DEF_CONFIRM_CLEAR, DEF_SINGLE_LINE,
DEF_REVERSE_HISTORY, DEF_ITEM_LENGTH, DEF_ELLIPSIZE,
INIT_HISTORY_KEY, INIT_ACTIONS_KEY, INIT_MENU_KEY,
INIT_SEARCH_KEY, INIT_OFFLINE_KEY, DEF_NO_ICON,
prefs_t prefs = {DEF_USE_COPY,
DEF_USE_PRIMARY,
DEF_SYNCHRONIZE,
DEF_AUTOMATIC_PASTE,
DEF_SHOW_INDEXES,
DEF_SAVE_URIS,
DEF_USE_RMB_MENU,
DEF_SAVE_HISTORY,
DEF_HISTORY_LIMIT,
DEF_HISTORY_TIMEOUT,
DEF_HISTORY_TIMEOUT_SECONDS,
DEF_ITEMS_MENU,
DEF_STATICS_SHOW,
DEF_STATICS_ITEMS,
DEF_HYPERLINKS_ONLY,
DEF_CONFIRM_CLEAR,
DEF_SINGLE_LINE,
DEF_REVERSE_HISTORY,
DEF_ITEM_LENGTH,
DEF_ELLIPSIZE,
INIT_HISTORY_KEY,
INIT_ACTIONS_KEY,
INIT_MENU_KEY,
INIT_SEARCH_KEY,
INIT_OFFLINE_KEY,
DEF_NO_ICON,
DEF_OFFLINE_MODE};

/* Variables for input buffer used for matching input to menu items */
Expand Down

0 comments on commit 99d1d57

Please sign in to comment.