mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Extension order: show files without extension on top
This commit is contained in:
parent
604a8fafcc
commit
9a757c4905
|
@ -1870,10 +1870,10 @@ static int entrycmp(const void *va, const void *vb)
|
||||||
|
|
||||||
if (extna || extnb) {
|
if (extna || extnb) {
|
||||||
if (!extna)
|
if (!extna)
|
||||||
return 1;
|
return -1;
|
||||||
|
|
||||||
if (!extnb)
|
if (!extnb)
|
||||||
return -1;
|
return 1;
|
||||||
|
|
||||||
int ret = strcasecmp(extna, extnb);
|
int ret = strcasecmp(extna, extnb);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue