aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2000-06-08 23:20:46 +0800
committerru <ru@FreeBSD.org>2000-06-08 23:20:46 +0800
commitd98962febc0ffd0b30b5619fefcc582d1110092f (patch)
tree333ed6b46bf3e991754dcc602a91f427a960710e
parent0563ab7f4049f6c03e21bf31f5031675f1c6c4a2 (diff)
downloadfreebsd-ports-gnome-d98962febc0ffd0b30b5619fefcc582d1110092f.tar.gz
freebsd-ports-gnome-d98962febc0ffd0b30b5619fefcc582d1110092f.tar.zst
freebsd-ports-gnome-d98962febc0ffd0b30b5619fefcc582d1110092f.zip
Do not sort directory entries when `Unsorted' is selected.
This makes output look right (the same as in `ls -f' case).
-rw-r--r--misc/deco/files/patch-ad12
1 files changed, 12 insertions, 0 deletions
diff --git a/misc/deco/files/patch-ad b/misc/deco/files/patch-ad
new file mode 100644
index 000000000000..7d31bcbbe06f
--- /dev/null
+++ b/misc/deco/files/patch-ad
@@ -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 */