freebsd-ports/misc/deco/files/patch-ad
Ruslan Ermilov 903f375741 Do not sort directory entries when `Unsorted' is selected.
This makes output look right (the same as in `ls -f' case).
2000-06-08 15:20:46 +00:00

12 lines
250 B
Text

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 */