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:
Ruslan Ermilov 2000-06-08 15:20:46 +00:00
parent d224ebcc59
commit 903f375741
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=29398

12
misc/deco/files/patch-ad Normal file
View 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 */