[packages/mutt] - revert one hunk in sidebar patch update to fix off-by-one in sidebar display (missing first lett

baggins baggins at pld-linux.org
Tue Jan 26 08:25:18 CET 2016


commit 75a333ecb89499f3cd2e6d04dc024e9d9bd7e32a
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Tue Jan 26 08:24:23 2016 +0100

    - revert one hunk in sidebar patch update to fix off-by-one in sidebar
      display (missing first letter of foler names)
    - rel 2

 mutt-sidebar.patch | 2 +-
 mutt.spec          | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/mutt.spec b/mutt.spec
index 4312a58..49fe156 100644
--- a/mutt.spec
+++ b/mutt.spec
@@ -29,7 +29,7 @@ Summary(tr.UTF-8):	Mutt elektronik posta programı
 Summary(uk.UTF-8):	Поштова клієнтська програма Mutt
 Name:		mutt
 Version:	1.5.24
-Release:	1
+Release:	2
 Epoch:		6
 License:	GPL v2+
 Group:		Applications/Mail
diff --git a/mutt-sidebar.patch b/mutt-sidebar.patch
index 0e08bfb..ff5435e 100644
--- a/mutt-sidebar.patch
+++ b/mutt-sidebar.patch
@@ -2197,7 +2197,7 @@
 + 		/* calculate depth of current folder and generate its display name with indented spaces */
 + 		int sidebar_folder_depth = 0;
 + 		char *sidebar_folder_name;
-+ 		sidebar_folder_name = option(OPTSIDEBARSHORTPATH) ? mutt_basename(tmp->path) : tmp->path + maildir_is_prefix*(strlen(Maildir) + 1);
++ 		sidebar_folder_name = option(OPTSIDEBARSHORTPATH) ? mutt_basename(tmp->path) : tmp->path + maildir_is_prefix*(strlen(Maildir) + ((Maildir[strlen(Maildir) - 1] == '/' || Maildir[strlen(Maildir) - 1] == '}') ? 0 : 1));
 + 		if ( maildir_is_prefix && option(OPTSIDEBARFOLDERINDENT) ) {
 + 			char *tmp_folder_name;
 + 			int i;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/mutt.git/commitdiff/75a333ecb89499f3cd2e6d04dc024e9d9bd7e32a



More information about the pld-cvs-commit mailing list