Do not sort directory entries when `Unsorted' is selected.
This makes output look right (the same as in `ls -f' case).
This commit is contained in:
parent
d224ebcc59
commit
903f375741
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=29398
1 changed files with 12 additions and 0 deletions
12
misc/deco/files/patch-ad
Normal file
12
misc/deco/files/patch-ad
Normal file
|
@ -0,0 +1,12 @@
|
|||
Index: dir.c
|
||||
@@ -358,8 +358,10 @@
|
||||
|
||||
d->topfile = d->curfile = 0;
|
||||
|
||||
+ if (d->sort != SORTSKIP) {
|
||||
compdir = d;
|
||||
qsort ((char*)d->cat, (unsigned) d->num, sizeof (d->cat[0]), compfile);
|
||||
+ }
|
||||
|
||||
if (! dirname) {
|
||||
/* retag files, restore curfile */
|
Loading…
Reference in a new issue