summaryrefslogtreecommitdiff
path: root/mail/neomutt/files/0001-fix-sidebar-use-abbreviated-path-if-possible.patch
diff options
context:
space:
mode:
Diffstat (limited to 'mail/neomutt/files/0001-fix-sidebar-use-abbreviated-path-if-possible.patch')
-rw-r--r--mail/neomutt/files/0001-fix-sidebar-use-abbreviated-path-if-possible.patch41
1 files changed, 0 insertions, 41 deletions
diff --git a/mail/neomutt/files/0001-fix-sidebar-use-abbreviated-path-if-possible.patch b/mail/neomutt/files/0001-fix-sidebar-use-abbreviated-path-if-possible.patch
deleted file mode 100644
index 6e665b590aba..000000000000
--- a/mail/neomutt/files/0001-fix-sidebar-use-abbreviated-path-if-possible.patch
+++ /dev/null
@@ -1,41 +0,0 @@
-From 96af299e8c8aff16f4c5e400f79d6edc3792eef5 Mon Sep 17 00:00:00 2001
-From: Austin Ray <austin@austinray.io>
-Date: Tue, 28 Apr 2020 21:00:57 -0400
-Subject: [PATCH] fix(sidebar): use abbreviated path if possible
-
-After the refactor in commit d77c704ceb85f34061e1333ab9c8eb5a264a0685,
-the sidebar only displays a mailbox's full path/URI except in the case
-of 'sidebar_short_path'. The full path/URI is not preferable for end
-users.
-
-What broke during the refactor is how the variable 'display' is updated.
-It's initialized to a mailbox's full path/URI and only updated if using
-'sidebar_short_path'. However, after initialization, an abbreviation is
-calculated to remove the 'folder' or protocol.
-
-To resolve this issue, if there's an abbreviation, store it in the
-'display' variable.
-
-Fixes #2293
----
- sidebar.c | 4 ++++
- 1 file changed, 4 insertions(+)
-
-diff --git a/sidebar.c b/sidebar.c
-index 810146e66..bc680000d 100644
---- a/sidebar.c
-+++ b/sidebar.c
-@@ -1101,6 +1101,10 @@ static void draw_sidebar(struct MuttWindow *win, int num_rows, int num_cols, int
- if (!abbr)
- abbr = abbrev_url(display, m->type);
-
-+ // Use the abbreviation if we have one. The full path is not preferable.
-+ if (abbr)
-+ display = abbr;
-+
- const char *last_part = abbr;
- int depth = calc_path_depth(abbr, C_SidebarDelimChars, &last_part);
-
---
-2.26.2
-