From 41dabb75bdb222808bbf313ab1b0bf86bee9777c Mon Sep 17 00:00:00 2001 From: Martin Dvorak Date: Sun, 13 Apr 2014 09:47:04 +0200 Subject: [PATCH] Favorites view enforcement from the command line. --- src/hstr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hstr.c b/src/hstr.c index 21f2706..0fe8f37 100644 --- a/src/hstr.c +++ b/src/hstr.c @@ -702,7 +702,6 @@ void hstr() HistoryItems *history=get_prioritized_history(); if(history) { history_mgmt_open(); - get_env_configuration(); loop_to_select(history); hstr_on_exit(); } else { @@ -712,10 +711,11 @@ void hstr() int main(int argc, char *argv[]) { + get_env_configuration(); if(argc>0) { if(argc==2) { if(strstr(argv[1], "--favorites") || strstr(argv[1], "-f")) { - xxx + historyView=HH_VIEW_FAVORITES; } if(strstr(argv[1], "--show-configuration")) { printf("%s", INSTALL_STRING);