diff options
author | Yorhel <git@yorhel.nl> | 2010-04-28 15:39:45 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2010-04-28 15:39:45 +0200 |
commit | d7d782be1cd2a5c127f6d5be1ccc150f2c7d6130 (patch) | |
tree | 9f22d2e03f0b1220190a4213167693659bc6c0b8 | |
parent | 6fa56c1b3831ce81b68fd866b213db1597ccdfba (diff) |
Reset descending/ascending order when changing sort column
This changes the behaviour back to it was before the dirlist
abstraction, which is the behaviour I prefer.
-rw-r--r-- | src/browser.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/browser.c b/src/browser.c index 325d993..24857da 100644 --- a/src/browser.c +++ b/src/browser.c @@ -315,12 +315,12 @@ int browse_key(int ch) { /* sorting items */ case 'n': - dirlist_set_sort(DL_COL_NAME, dirlist_sort_col == DL_COL_NAME ? !dirlist_sort_desc : DL_NOCHANGE, DL_NOCHANGE); + dirlist_set_sort(DL_COL_NAME, dirlist_sort_col == DL_COL_NAME ? !dirlist_sort_desc : 0, DL_NOCHANGE); info_show = 0; break; case 's': i = show_as ? DL_COL_ASIZE : DL_COL_SIZE; - dirlist_set_sort(i, dirlist_sort_col == i ? !dirlist_sort_desc : DL_NOCHANGE, DL_NOCHANGE); + dirlist_set_sort(i, dirlist_sort_col == i ? !dirlist_sort_desc : 1, DL_NOCHANGE); info_show = 0; break; case 'e': |