Skip to content

Commit

Permalink
Enable config.pin_last by default
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberShadow committed Oct 25, 2017
1 parent 032c8a8 commit 81c2688
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
2 changes: 1 addition & 1 deletion doc/test_xr.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions test/history-test.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 81c2688

Please sign in to comment.