forked from Lainports/freebsd-ports
- Clean up patches due to upstream whitespace cleanup/changes - Mark NNTP patch broken with 1.12.0 - VVV quote patch broken. Add to files/ fixed version until updated upstream - Update extra-patch-maildir-mtime* due to upstream 6317a30369e - Remove extra-patch-smime-outlook. The code [2] backing this patch was removed [*] http://www.mutt.org/relnotes/1.12/ PR: 238179 Submitted by: Derek Schrock <dereks@lifeofadishwasher.com> (maintainer)
41 lines
1.3 KiB
C
41 lines
1.3 KiB
C
--- browser.c.orig 2019-04-28 20:41:58 UTC
|
|
+++ browser.c
|
|
@@ -86,6 +86,12 @@ static int browser_compare_subject (const void *a, con
|
|
struct folder_file *pa = (struct folder_file *) a;
|
|
struct folder_file *pb = (struct folder_file *) b;
|
|
|
|
+ /* Always keep '..' in first menu position */
|
|
+ if (!strncmp(pa->name, "..", 2))
|
|
+ return(-1);
|
|
+ if (!strncmp(pb->name, "..", 2))
|
|
+ return(1);
|
|
+
|
|
int r = mutt_strcoll (pa->name, pb->name);
|
|
|
|
return ((BrowserSort & SORT_REVERSE) ? -r : r);
|
|
@@ -96,6 +102,12 @@ static int browser_compare_date (const void *a, const
|
|
struct folder_file *pa = (struct folder_file *) a;
|
|
struct folder_file *pb = (struct folder_file *) b;
|
|
|
|
+ /* Always keep '..' in first menu position */
|
|
+ if (!strncmp(pa->name, "..", 2))
|
|
+ return(-1);
|
|
+ if (!strncmp(pb->name, "..", 2))
|
|
+ return(1);
|
|
+
|
|
int r = pa->mtime - pb->mtime;
|
|
|
|
return ((BrowserSort & SORT_REVERSE) ? -r : r);
|
|
@@ -105,6 +117,12 @@ static int browser_compare_size (const void *a, const
|
|
{
|
|
struct folder_file *pa = (struct folder_file *) a;
|
|
struct folder_file *pb = (struct folder_file *) b;
|
|
+
|
|
+ /* Always keep '..' in first menu position */
|
|
+ if (!strncmp(pa->name, "..", 2))
|
|
+ return(-1);
|
|
+ if (!strncmp(pb->name, "..", 2))
|
|
+ return(1);
|
|
|
|
int r = pa->size - pb->size;
|
|
|