mirror of
https://code.blicky.net/yorhel/ncdu.git
synced 2026-01-13 01:08:41 -09:00
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.
This commit is contained in:
parent
6fa56c1b38
commit
d7d782be1c
1 changed files with 2 additions and 2 deletions
|
|
@ -315,12 +315,12 @@ int browse_key(int ch) {
|
||||||
|
|
||||||
/* sorting items */
|
/* sorting items */
|
||||||
case 'n':
|
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;
|
info_show = 0;
|
||||||
break;
|
break;
|
||||||
case 's':
|
case 's':
|
||||||
i = show_as ? DL_COL_ASIZE : DL_COL_SIZE;
|
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;
|
info_show = 0;
|
||||||
break;
|
break;
|
||||||
case 'e':
|
case 'e':
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue