nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 54dca7b7b3e0f55a4c18ba857c06accad787ebee
parent 0df875a45d069e676f1454e7339bb7d644d13bed
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date:   Fri, 11 Feb 2005 16:02:54 +0000

revert diralphasort() tweak


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2314 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

Diffstat:
Msrc/files.c | 10++--------
1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/src/files.c b/src/files.c @@ -1965,9 +1965,8 @@ char *real_dir_from_tilde(const char *buf) } #if !defined(DISABLE_TABCOMP) || !defined(DISABLE_BROWSER) -/* Our sort routine for file listings. Sort directories before - * filenames, alphabetically and ignoring case differences. Sort - * filenames the same way, except for ignoring an initial dot. */ +/* Our sort routine for file listings. Sort alphabetically and + * case-insensitively, and sort directories before filenames. */ int diralphasort(const void *va, const void *vb) { struct stat fileinfo; @@ -1981,11 +1980,6 @@ int diralphasort(const void *va, const void *vb) if (!aisdir && bisdir) return 1; - if (*a == '.') - a++; - if (*b == '.') - b++; - return strcasecmp(a, b); } #endif