From 81c26882aea77fd4e53a8982eb666d16f36d4096 Mon Sep 17 00:00:00 2001 From: Vladimir Panteleev Date: Sat, 12 Aug 2017 21:08:41 +0000 Subject: [PATCH] Enable config.pin_last by default --- config/config.c | 2 +- doc/test_xr.txt | 2 +- test/history-test.c | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/config/config.c b/config/config.c index 0f4cdf605..02b3fe519 100644 --- a/config/config.c +++ b/config/config.c @@ -92,7 +92,7 @@ Settings config = { /** Do not use history */ .disable_history = FALSE, /** Always place the last-executed item in first place */ - .pin_last = FALSE, + .pin_last = TRUE, /** Sort the displayed list */ .sort = FALSE, /** Use levenshtein sorting when matching */ diff --git a/doc/test_xr.txt b/doc/test_xr.txt index 64ec786c2..e99b6c6b0 100644 --- a/doc/test_xr.txt +++ b/doc/test_xr.txt @@ -41,7 +41,7 @@ rofi.window-command: xkill -id {window} ! "Disable history in run/ssh" Set from: File rofi.disable-history: false ! "Always place the last-executed item in first place" Set from: Default -! rofi.pin-last: false +! rofi.pin-last: true ! "Use sorting" Set from: Default ! rofi.sort: false ! "Use levenshtein sorting also for fuzzy matching" Set from: File diff --git a/test/history-test.c b/test/history-test.c index 43d70cdc0..bb598fca1 100644 --- a/test/history-test.c +++ b/test/history-test.c @@ -46,6 +46,7 @@ const char *file = "text"; static void history_test ( void ) { unlink ( file ); + config.pin_last = 0; // Empty list. unsigned int length = 0;