From 903f3757415ec3509253d836f573da1a913d50b0 Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Thu, 8 Jun 2000 15:20:46 +0000 Subject: Do not sort directory entries when `Unsorted' is selected. This makes output look right (the same as in `ls -f' case). --- misc/deco/files/patch-ad | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 misc/deco/files/patch-ad (limited to 'misc/deco/files/patch-ad') 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 */ -- cgit v1.2.3